jsPsych/packages/config/jest.config.js
bjoluc 744e67b0a5 Setup monorepo and switch to ES6 modules
* Convert jsPsych and plugins to ES6 modules
* Create packages for each plugin, the core library, and config files
* Setup rollup, jest, and babel configurations
* Update jsPsych to load plugin objects directly from the `type` field
* Update tests to use the ES6 modules
2021-06-23 22:39:38 +02:00

13 lines
306 B
JavaScript

module.exports = {
resetModules: true,
testEnvironment: "jsdom",
testEnvironmentOptions: {
fetchExternalResources: true,
pretendToBeVisual: true,
},
testURL: "http://localhost/",
transform: {
"\\.js$": ["babel-jest", { configFile: "@jspsych/config/babel.test.config.js" }],
},
};