fix: csp error (#48) #29
Annotations
10 errors, 1 warning, and 1 notice
test/utils/collect-next-pages.ts#L9
1) [chromium] › headers.spec.ts:15:3 › Page Headers › Config should have all static pages ========
Error: ENOENT: no such file or directory, scandir '/home/runner/work/ethereum-staking-widget/ethereum-staking-widget/.next/server/pages'
at utils/collect-next-pages.ts:9
7 | const directory = path.join(__dirname, '../../.next/server/pages');
8 |
> 9 | const items = fs.readdirSync(directory);
| ^
10 | const routes: string[] = [];
11 | let item: string | undefined;
12 | while ((item = items.pop())) {
at getAllPagesRoutes (file:///home/runner/work/ethereum-staking-widget/ethereum-staking-widget/test/utils/collect-next-pages.ts:9:20)
at file:///home/runner/work/ethereum-staking-widget/ethereum-staking-widget/test/headers.spec.ts:16:24
|
test/utils/collect-next-pages.ts#L9
1) [chromium] › headers.spec.ts:15:3 › Page Headers › Config should have all static pages ========
Retry #1 ---------------------------------------------------------------------------------------
Error: ENOENT: no such file or directory, scandir '/home/runner/work/ethereum-staking-widget/ethereum-staking-widget/.next/server/pages'
at utils/collect-next-pages.ts:9
7 | const directory = path.join(__dirname, '../../.next/server/pages');
8 |
> 9 | const items = fs.readdirSync(directory);
| ^
10 | const routes: string[] = [];
11 | let item: string | undefined;
12 | while ((item = items.pop())) {
at getAllPagesRoutes (file:///home/runner/work/ethereum-staking-widget/ethereum-staking-widget/test/utils/collect-next-pages.ts:9:20)
at file:///home/runner/work/ethereum-staking-widget/ethereum-staking-widget/test/headers.spec.ts:16:24
|
test/utils/collect-next-pages.ts#L9
1) [chromium] › headers.spec.ts:15:3 › Page Headers › Config should have all static pages ========
Retry #2 ---------------------------------------------------------------------------------------
Error: ENOENT: no such file or directory, scandir '/home/runner/work/ethereum-staking-widget/ethereum-staking-widget/.next/server/pages'
at utils/collect-next-pages.ts:9
7 | const directory = path.join(__dirname, '../../.next/server/pages');
8 |
> 9 | const items = fs.readdirSync(directory);
| ^
10 | const routes: string[] = [];
11 | let item: string | undefined;
12 | while ((item = items.pop())) {
at getAllPagesRoutes (file:///home/runner/work/ethereum-staking-widget/ethereum-staking-widget/test/utils/collect-next-pages.ts:9:20)
at file:///home/runner/work/ethereum-staking-widget/ethereum-staking-widget/test/headers.spec.ts:16:24
|
test/headers.spec.ts#L30
2) [chromium] › headers.spec.ts:23:5 › Page Headers › Page /manifest.json should have proper headers
Error: expect(received).toBe(expected) // Object.is equality
Expected: "same-origin"
Received: undefined
28 | expect(headers['cache-control']).toBe(CACHE_CONTROL_VALUE);
29 |
> 30 | expect(headers['referrer-policy']).toBe('same-origin');
| ^
31 | expect(headers['strict-transport-security']).toBe(
32 | 'max-age=63072000; includeSubDomains; preload',
33 | );
at file:///home/runner/work/ethereum-staking-widget/ethereum-staking-widget/test/headers.spec.ts:30:42
|
test/headers.spec.ts#L30
2) [chromium] › headers.spec.ts:23:5 › Page Headers › Page /manifest.json should have proper headers
Retry #1 ---------------------------------------------------------------------------------------
Error: expect(received).toBe(expected) // Object.is equality
Expected: "same-origin"
Received: undefined
28 | expect(headers['cache-control']).toBe(CACHE_CONTROL_VALUE);
29 |
> 30 | expect(headers['referrer-policy']).toBe('same-origin');
| ^
31 | expect(headers['strict-transport-security']).toBe(
32 | 'max-age=63072000; includeSubDomains; preload',
33 | );
at file:///home/runner/work/ethereum-staking-widget/ethereum-staking-widget/test/headers.spec.ts:30:42
|
test/headers.spec.ts#L30
2) [chromium] › headers.spec.ts:23:5 › Page Headers › Page /manifest.json should have proper headers
Retry #2 ---------------------------------------------------------------------------------------
Error: expect(received).toBe(expected) // Object.is equality
Expected: "same-origin"
Received: undefined
28 | expect(headers['cache-control']).toBe(CACHE_CONTROL_VALUE);
29 |
> 30 | expect(headers['referrer-policy']).toBe('same-origin');
| ^
31 | expect(headers['strict-transport-security']).toBe(
32 | 'max-age=63072000; includeSubDomains; preload',
33 | );
at file:///home/runner/work/ethereum-staking-widget/ethereum-staking-widget/test/headers.spec.ts:30:42
|
test/headers.spec.ts#L30
3) [chromium] › headers.spec.ts:23:5 › Page Headers › Page /favicon.ico should have proper headers
Error: expect(received).toBe(expected) // Object.is equality
Expected: "same-origin"
Received: undefined
28 | expect(headers['cache-control']).toBe(CACHE_CONTROL_VALUE);
29 |
> 30 | expect(headers['referrer-policy']).toBe('same-origin');
| ^
31 | expect(headers['strict-transport-security']).toBe(
32 | 'max-age=63072000; includeSubDomains; preload',
33 | );
at file:///home/runner/work/ethereum-staking-widget/ethereum-staking-widget/test/headers.spec.ts:30:42
|
test/headers.spec.ts#L30
3) [chromium] › headers.spec.ts:23:5 › Page Headers › Page /favicon.ico should have proper headers
Retry #1 ---------------------------------------------------------------------------------------
Error: expect(received).toBe(expected) // Object.is equality
Expected: "same-origin"
Received: undefined
28 | expect(headers['cache-control']).toBe(CACHE_CONTROL_VALUE);
29 |
> 30 | expect(headers['referrer-policy']).toBe('same-origin');
| ^
31 | expect(headers['strict-transport-security']).toBe(
32 | 'max-age=63072000; includeSubDomains; preload',
33 | );
at file:///home/runner/work/ethereum-staking-widget/ethereum-staking-widget/test/headers.spec.ts:30:42
|
test/headers.spec.ts#L30
3) [chromium] › headers.spec.ts:23:5 › Page Headers › Page /favicon.ico should have proper headers
Retry #2 ---------------------------------------------------------------------------------------
Error: expect(received).toBe(expected) // Object.is equality
Expected: "same-origin"
Received: undefined
28 | expect(headers['cache-control']).toBe(CACHE_CONTROL_VALUE);
29 |
> 30 | expect(headers['referrer-policy']).toBe('same-origin');
| ^
31 | expect(headers['strict-transport-security']).toBe(
32 | 'max-age=63072000; includeSubDomains; preload',
33 | );
at file:///home/runner/work/ethereum-staking-widget/ethereum-staking-widget/test/headers.spec.ts:30:42
|
test/headers.spec.ts#L31
4) [chromium] › headers.spec.ts:23:5 › Page Headers › Page / should have proper headers ==========
Error: expect(received).toBe(expected) // Object.is equality
Expected: "max-age=63072000; includeSubDomains; preload"
Received: "max-age=2592000; includeSubDomains; preload"
29 |
30 | expect(headers['referrer-policy']).toBe('same-origin');
> 31 | expect(headers['strict-transport-security']).toBe(
| ^
32 | 'max-age=63072000; includeSubDomains; preload',
33 | );
34 | expect(headers['x-content-type-options']).toBe('nosniff');
at file:///home/runner/work/ethereum-staking-widget/ethereum-staking-widget/test/headers.spec.ts:31:52
|
|
33 failed
[chromium] › headers.spec.ts:15:3 › Page Headers › Config should have all static pages =========
[chromium] › headers.spec.ts:23:5 › Page Headers › Page /manifest.json should have proper headers
[chromium] › headers.spec.ts:23:5 › Page Headers › Page /favicon.ico should have proper headers
[chromium] › headers.spec.ts:23:5 › Page Headers › Page / should have proper headers ===========
[chromium] › headers.spec.ts:23:5 › Page Headers › Page /wrap should have proper headers =======
[chromium] › headers.spec.ts:23:5 › Page Headers › Page /wrap/unwrap should have proper headers
[chromium] › headers.spec.ts:23:5 › Page Headers › Page /rewards should have proper headers ====
[chromium] › headers.spec.ts:23:5 › Page Headers › Page /referral should have proper headers ===
[chromium] › headers.spec.ts:23:5 › Page Headers › Page /withdrawals/request should have proper headers
[chromium] › headers.spec.ts:23:5 › Page Headers › Page /withdrawals/claim should have proper headers
[chromium] › headers.spec.ts:23:5 › Page Headers › Page /runtime/window-env.js should have proper headers
[firefox] › headers.spec.ts:15:3 › Page Headers › Config should have all static pages ==========
[firefox] › headers.spec.ts:23:5 › Page Headers › Page /manifest.json should have proper headers
[firefox] › headers.spec.ts:23:5 › Page Headers › Page /favicon.ico should have proper headers =
[firefox] › headers.spec.ts:23:5 › Page Headers › Page / should have proper headers ============
[firefox] › headers.spec.ts:23:5 › Page Headers › Page /wrap should have proper headers ========
[firefox] › headers.spec.ts:23:5 › Page Headers › Page /wrap/unwrap should have proper headers =
[firefox] › headers.spec.ts:23:5 › Page Headers › Page /rewards should have proper headers =====
[firefox] › headers.spec.ts:23:5 › Page Headers › Page /referral should have proper headers ====
[firefox] › headers.spec.ts:23:5 › Page Headers › Page /withdrawals/request should have proper headers
[firefox] › headers.spec.ts:23:5 › Page Headers › Page /withdrawals/claim should have proper headers
[firefox] › headers.spec.ts:23:5 › Page Headers › Page /runtime/window-env.js should have proper headers
[webkit] › headers.spec.ts:15:3 › Page Headers › Config should have all static pages ===========
[webkit] › headers.spec.ts:23:5 › Page Headers › Page /manifest.json should have proper headers
[webkit] › headers.spec.ts:23:5 › Page Headers › Page /favicon.ico should have proper headers ==
[webkit] › headers.spec.ts:23:5 › Page Headers › Page / should have proper headers =============
[webkit] › headers.spec.ts:23:5 › Page Headers › Page /wrap should have proper headers =========
[webkit] › headers.spec.ts:23:5 › Page Headers › Page /wrap/unwrap should have proper headers ==
[webkit] › headers.spec.ts:23:5 › Page Headers › Page /rewards should have proper headers ======
[webkit] › headers.spec.ts:23:5 › Page Headers › Page /referral should have proper headers =====
[webkit] › headers.spec.ts:23:5 › Page Headers › Page /withdrawals/request should have proper headers
[webkit] › headers.spec.ts:23:5 › Page Headers › Page /withdrawals/claim should have proper headers
[webkit] › headers.spec.ts:23:5 › Page Headers › Page /runtime/window-env.js should have proper headers
14 passed (2.8m)
|
The logs for this run have expired and are no longer available.
Loading