Skip to content

Commit 2acf463

Browse files
committed
Fix CI type error
1 parent 3f21712 commit 2acf463

3 files changed

Lines changed: 21 additions & 15 deletions

File tree

.cache/pages.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Type declaration for generated pages.json file
3+
* This file is generated during the build process
4+
*/
5+
6+
type PageData =
7+
| string
8+
| { articles: string[] }
9+
| { 'case-studies': string[] }
10+
| { downloads: string[] }
11+
| { services: string[] }
12+
| { 'social-shares': string[] }
13+
| { stories: string[] }
14+
| { tags: string[] }
15+
16+
declare const pagesData: PageData[]
17+
export default pagesData

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ npm-debug.log*
3232
# Optional eslint cache
3333
.eslintcache
3434

35-
# Cache
36-
.cache
35+
# Cache - ignore all contents except type declarations and placeholder data
36+
.cache/*
37+
!.cache/*.d.ts
38+
!.cache/pages.json
3739

3840
# Runtime data
3941
pids

package.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,6 @@
4545
"test": "NODE_ENV=test npm run test:unit && npm run test:e2e:ready",
4646
"test:coverage": "NODE_ENV=test npx vitest run --coverage",
4747
"test:e2e": "NODE_ENV=test npx playwright test",
48-
"test:e2e:all": "NODE_ENV=test npx playwright test --grep-invert @blocked",
49-
"test:e2e:debug": "NODE_ENV=test npx playwright test --debug",
50-
"test:e2e:dev": "NODE_ENV=test DEBUG=true npx playwright test",
51-
"test:e2e:dev:headed": "NODE_ENV=test DEBUG=true npx playwright test --headed",
52-
"test:e2e:dev:smoke": "NODE_ENV=test DEBUG=true npx playwright test test/e2e/specs/01-smoke",
53-
"test:e2e:dev:ui": "NODE_ENV=test DEBUG=true npx playwright test --ui",
54-
"test:e2e:headed": "NODE_ENV=test npx playwright test --headed",
55-
"test:e2e:list": "NODE_ENV=test npx playwright test --list",
56-
"test:e2e:ready": "NODE_ENV=test npx playwright test --grep @ready",
57-
"test:e2e:report": "npx playwright show-report .cache/playwright/reports",
58-
"test:e2e:smoke": "NODE_ENV=test npx playwright test test/e2e/specs/01-smoke",
59-
"test:e2e:ui": "NODE_ENV=test npx playwright test --ui",
60-
"test:e2e:wip": "NODE_ENV=test npx playwright test --grep @wip",
6148
"test:unit": "NODE_ENV=test npx vitest run",
6249
"upgrade": "npx @astrojs/upgrade",
6350
"prepare": "husky"

0 commit comments

Comments
 (0)