/fusion-react/jest.config.js
https://github.com/fusionjs/fusion-react · JavaScript · 27 lines · 24 code · 1 blank · 2 comment · 0 complexity · 9074b959741042742c1b69eacf86bb2e MD5 · raw file
- // @flow
- /* eslint-env node */
- module.exports = {
- projects: [
- {
- displayName: 'node',
- testEnvironment: 'node',
- testPathIgnorePatterns: ['/node_modules/', '.browser.js', 'dist'],
- globals: {
- __NODE__: true,
- __BROWSER__: false,
- __DEV__: true,
- },
- },
- {
- displayName: 'browser',
- testEnvironment: 'jsdom',
- testPathIgnorePatterns: ['/node_modules/', '.node.js', 'dist'],
- globals: {
- __NODE__: false,
- __BROWSER__: true,
- __DEV__: true,
- },
- },
- ],
- };