mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 16:59:06 +02:00
chore: upgrade Jest to 28; add GitHub-actions reporter (#7243)
This commit is contained in:
parent
10a5ebecec
commit
9a1b7217ba
4 changed files with 591 additions and 468 deletions
|
@ -32,7 +32,9 @@ const ignorePatterns = [
|
|||
export default {
|
||||
rootDir: fileURLToPath(new URL('.', import.meta.url)),
|
||||
verbose: true,
|
||||
testURL: 'https://docusaurus.io/',
|
||||
testEnvironmentOptions: {
|
||||
url: 'https://docusaurus.io/',
|
||||
},
|
||||
testEnvironment: 'node',
|
||||
testPathIgnorePatterns: ignorePatterns,
|
||||
coveragePathIgnorePatterns: [
|
||||
|
@ -44,6 +46,7 @@ export default {
|
|||
'^.+\\.[jt]sx?$': '@swc/jest',
|
||||
},
|
||||
errorOnDeprecated: true,
|
||||
reporters: ['default', 'github-actions'],
|
||||
moduleNameMapper: {
|
||||
// Jest can't resolve CSS or asset imports
|
||||
'^.+\\.(css|jpe?g|png|svg|webp)$': '<rootDir>/jest/emptyModule.ts',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue