fusion-plugin-service-worker-tests/jest.config.js (34 lines of code) (raw):
// @flow
/* eslint-env node */
module.exports = {
projects: [
{
displayName: 'node',
testEnvironment: 'node',
testPathIgnorePatterns: [
'/node_modules/',
'.browser.js',
'dist',
'utils.node.js',
],
globals: {
__NODE__: true,
__BROWSER__: false,
__DEV__: true,
},
},
{
displayName: 'browser',
testEnvironment: 'jsdom',
testPathIgnorePatterns: [
'/node_modules/',
'.node.js',
'dist',
'utils.node.js',
],
globals: {
__NODE__: false,
__BROWSER__: true,
__DEV__: true,
},
},
],
};