-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove babel - usw swc transform - fix wallaby config - remove coverage thresholds due to swc-project/swc#3854 - generate coverage report as PR comment instead
- Loading branch information
1 parent
2ce1988
commit 3f4bf39
Showing
8 changed files
with
64 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// @ts-check | ||
|
||
/** | ||
* @type {import('jest').Config} | ||
*/ | ||
module.exports = { | ||
clearMocks: true, | ||
moduleFileExtensions: ['js', 'json', 'ts', 'tsx'], | ||
testMatch: [ | ||
'<rootDir>/packages/*/src/**/*.test.{ts,tsx}', | ||
'!packages/{dom,demos}/**/*', | ||
], | ||
transform: {'^.+\\.tsx?$': '@swc/jest'}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,7 @@ | ||
// @ts-check | ||
|
||
function setup({projectCacheDir, testFramework}) { | ||
const jestConfig = require('./jest.config'); | ||
|
||
delete jestConfig.globalSetup; | ||
delete jestConfig.globalTeardown; | ||
|
||
jestConfig.moduleNameMapper = { | ||
'^@feature-hub/([^/]+)$': projectCacheDir + '/packages/$1/src', | ||
}; | ||
|
||
testFramework.configure(jestConfig); | ||
} | ||
|
||
module.exports = (wallaby) => ({ | ||
files: [ | ||
'jest.config.js', | ||
'packages/*/src/**/*.{ts,tsx,snap}', | ||
'!packages/{dom,demos}/**/*', | ||
'!packages/*/src/**/*.test.{ts,tsx}', | ||
], | ||
tests: ['packages/*/src/**/*.test.{ts,tsx}', '!packages/{dom,demos}/**/*'], | ||
env: {type: 'node', runner: 'node'}, | ||
setup, | ||
testFramework: 'jest', | ||
compilers: { | ||
'**/*.ts?(x)': wallaby.compilers.babel(), | ||
module.exports = () => ({ | ||
testFramework: { | ||
configFile: './jest.config.wallaby.js', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters