chore: update test configs and opening data
- Update jest.config.ts for new test structure - Update playwright.config.ts for e2e test setup - Update opening database files (12,379 entries) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,6 +15,10 @@ const config: Config = {
|
|||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
'^@/(.*)$': '<rootDir>/src/$1',
|
'^@/(.*)$': '<rootDir>/src/$1',
|
||||||
},
|
},
|
||||||
|
testPathIgnorePatterns: [
|
||||||
|
'/node_modules/',
|
||||||
|
'/e2e/', // Exclude Playwright e2e tests
|
||||||
|
],
|
||||||
transformIgnorePatterns: [
|
transformIgnorePatterns: [
|
||||||
'node_modules/(?!(react-markdown|remark-.*|unified|bail|is-plain-obj|trough|vfile|unist-.*|mdast-.*|micromark.*|decode-named-character-reference|character-entities|property-information|hast-util-whitespace|space-separated-tokens|comma-separated-tokens|ccount|escape-string-regexp|markdown-table)/)',
|
'node_modules/(?!(react-markdown|remark-.*|unified|bail|is-plain-obj|trough|vfile|unist-.*|mdast-.*|micromark.*|decode-named-character-reference|character-entities|property-information|hast-util-whitespace|space-separated-tokens|comma-separated-tokens|ccount|escape-string-regexp|markdown-table)/)',
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
"test:e2e:headed": "playwright test --headed",
|
"test:e2e:headed": "playwright test --headed",
|
||||||
"test:all": "npm test && npm run test:e2e",
|
"test:all": "npm test && npm run test:e2e",
|
||||||
"build:opening-index": "node scripts/buildOpeningIndex.js",
|
"build:opening-index": "node scripts/buildOpeningIndex.js",
|
||||||
|
"generate:test-fixtures": "npx tsx scripts/generate-test-fixtures.ts",
|
||||||
"cache:wikipedia": "tsx scripts/fetch-wikipedia-openings.ts",
|
"cache:wikipedia": "tsx scripts/fetch-wikipedia-openings.ts",
|
||||||
"update:wikipedia-slugs": "tsx scripts/add-wikipedia-to-openings.ts",
|
"update:wikipedia-slugs": "tsx scripts/add-wikipedia-to-openings.ts",
|
||||||
"build:mobile": "./scripts/build-mobile.sh",
|
"build:mobile": "./scripts/build-mobile.sh",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { defineConfig, devices } from '@playwright/test';
|
import { defineConfig, devices } from '@playwright/test';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
globalSetup: require.resolve('./e2e/global-setup'),
|
||||||
testDir: './e2e',
|
testDir: './e2e',
|
||||||
fullyParallel: true,
|
fullyParallel: true,
|
||||||
forbidOnly: !!process.env.CI,
|
forbidOnly: !!process.env.CI,
|
||||||
|
|||||||
+45
-22359
File diff suppressed because it is too large
Load Diff
+43
-22573
File diff suppressed because it is too large
Load Diff
+64
-26511
File diff suppressed because it is too large
Load Diff
+44
-18933
File diff suppressed because it is too large
Load Diff
+54
-14336
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user