feat(nextjs): enhance route protection with createRouteMatcher and session validation #102
Annotations
10 errors and 6 warnings
|
packages/javascript/src/utils/__tests__/deriveOrganizationHandleFromBaseUrl.test.ts#L138
AssertionError: expected '@asgardeo/javascript' to be 'javascript' // Object.is equality
Expected: "javascript"
Received: "@asgardeo/javascript"
❯ src/utils/__tests__/deriveOrganizationHandleFromBaseUrl.test.ts:138:30
|
|
packages/javascript/src/utils/__tests__/deriveOrganizationHandleFromBaseUrl.test.ts#L95
AssertionError: expected function to throw an error, but it didn't
❯ src/utils/__tests__/deriveOrganizationHandleFromBaseUrl.test.ts:95:10
|
|
packages/javascript/src/utils/__tests__/deriveOrganizationHandleFromBaseUrl.test.ts#L85
AssertionError: expected function to throw an error, but it didn't
❯ src/utils/__tests__/deriveOrganizationHandleFromBaseUrl.test.ts:85:10
|
|
packages/javascript/src/utils/__tests__/deriveOrganizationHandleFromBaseUrl.test.ts#L75
AssertionError: expected function to throw an error, but it didn't
❯ src/utils/__tests__/deriveOrganizationHandleFromBaseUrl.test.ts:75:10
|
|
packages/javascript/src/utils/__tests__/deriveOrganizationHandleFromBaseUrl.test.ts#L65
AssertionError: expected function to throw an error, but it didn't
❯ src/utils/__tests__/deriveOrganizationHandleFromBaseUrl.test.ts:65:10
|
|
packages/javascript/src/api/__tests__/getScim2Me.test.ts#L21
Error: Cannot find module '../../../errors/AsgardeoAPIError' imported from '/home/runner/work/web-ui-sdks/web-ui-sdks/packages/javascript/src/api/__tests__/getScim2Me.test.ts'
❯ src/api/__tests__/getScim2Me.test.ts:21:1
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' }
Caused by: Caused by: Error: Failed to load url ../../../errors/AsgardeoAPIError (resolved id: ../../../errors/AsgardeoAPIError) in /home/runner/work/web-ui-sdks/web-ui-sdks/packages/javascript/src/api/__tests__/getScim2Me.test.ts. Does the file exist?
❯ loadAndTransform ../../node_modules/.pnpm/vite@6.3.5_@types+node@22.15.30_jiti@2.4.2_lightningcss@1.30.1_sass@1.89.0_terser@5.39.2_yaml@2.8.0/node_modules/vite/dist/node/chunks/dep-DBxKXgDP.js:35725:17
|
|
packages/javascript/src/api/__tests__/getBrandingPreference.test.ts#L226
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
[
- "https://api.asgardeo.io/t/dxlab/api/server/v1/branding-preference",
+ "https://api.asgardeo.io/t/dxlab/api/server/v1/branding-preference/resolve",
{
"headers": {
+ "Accept": "application/json",
"Authorization": "***",
+ "Content-Type": "application/json",
"X-Custom-Header": "custom-value",
},
"method": "GET",
},
]
Number of calls: 1
❯ src/api/__tests__/getBrandingPreference.test.ts:226:19
|
|
packages/javascript/src/api/__tests__/getBrandingPreference.test.ts#L163
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
@@ -1,7 +1,7 @@
[
- "https://api.asgardeo.io/t/dxlab/api/server/v1/branding-preference",
+ "https://api.asgardeo.io/t/dxlab/api/server/v1/branding-preference/resolve",
{
"headers": {
"Accept": "application/json",
"Content-Type": "application/json",
},
Number of calls: 1
❯ src/api/__tests__/getBrandingPreference.test.ts:163:27
|
|
packages/javascript/src/api/__tests__/getBrandingPreference.test.ts#L137
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
@@ -1,7 +1,7 @@
[
- "https://api.asgardeo.io/t/dxlab/api/server/v1/branding-preference?locale=en-US&name=custom&type=org",
+ "https://api.asgardeo.io/t/dxlab/api/server/v1/branding-preference/resolve?locale=en-US&name=custom&type=org",
{
"headers": {
"Accept": "application/json",
"Content-Type": "application/json",
},
Number of calls: 1
❯ src/api/__tests__/getBrandingPreference.test.ts:137:19
|
|
packages/javascript/src/api/__tests__/getBrandingPreference.test.ts#L107
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
@@ -1,7 +1,7 @@
[
- "https://api.asgardeo.io/t/dxlab/api/server/v1/branding-preference",
+ "https://api.asgardeo.io/t/dxlab/api/server/v1/branding-preference/resolve",
{
"headers": {
"Accept": "application/json",
"Content-Type": "application/json",
},
Number of calls: 1
❯ src/api/__tests__/getBrandingPreference.test.ts:107:19
|
|
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
The logs for this run have expired and are no longer available.
Loading