Files
runbin/web/node_modules/@open-rpc/client-js/jest.config.js
lhx-666-cool f6cb277519 add web
2025-04-25 17:03:25 +08:00

20 lines
595 B
JavaScript

module.exports = {
"clearMocks": true,
"coverageDirectory": "../coverage",
// `resetMocks` resets reusable spies from __mocks__ to no-op implementation
// see: https://stackoverflow.com/a/63191062/2650622 for more details
"resetMocks": false,
"restoreMocks": true,
"rootDir": "./src",
"testEnvironment": "jsdom",
"preset": "ts-jest",
"coveragePathIgnorePatterns": ["Error.ts"],
"testEnvironmentOptions": {
"resources": "usable",
"features": {
"FetchExternalResources": ["script", "iframe"],
"ProcessExternalResources": ["script", "iframe"],
}
}
}