mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-22 11:45:28 -05:00
Migrate the Jest config (#873)
* Migrate the Jest config * Run Prettier
This commit is contained in:
@@ -3,17 +3,20 @@ module.exports = {
|
|||||||
preset: 'ts-jest',
|
preset: 'ts-jest',
|
||||||
testEnvironment: 'jest-environment-jsdom',
|
testEnvironment: 'jest-environment-jsdom',
|
||||||
extensionsToTreatAsEsm: ['.ts'],
|
extensionsToTreatAsEsm: ['.ts'],
|
||||||
globals: {
|
transform: {
|
||||||
'ts-jest': {
|
'^.+\\.tsx?$': [
|
||||||
tsconfig: 'tsconfig.json',
|
'ts-jest',
|
||||||
useESM: true
|
{
|
||||||
}
|
tsconfig: 'tsconfig.json',
|
||||||
|
useESM: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
verbose: true,
|
verbose: true,
|
||||||
testEnvironmentOptions: {
|
testEnvironmentOptions: {
|
||||||
url: "http://localhost"
|
url: 'http://localhost',
|
||||||
},
|
},
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
"^[./a-zA-Z0-9$_-]+\\.py$": "<rootDir>/__mocks__/fileMock.js",
|
'^[./a-zA-Z0-9$_-]+\\.py$': '<rootDir>/__mocks__/fileMock.js',
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user