PageRenderTime 79ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): MIT
  1. // @flow
  2. /* eslint-env node */
  3. module.exports = {
  4. projects: [
  5. {
  6. displayName: 'node',
  7. testEnvironment: 'node',
  8. testPathIgnorePatterns: ['/node_modules/', '.browser.js', 'dist'],
  9. globals: {
  10. __NODE__: true,
  11. __BROWSER__: false,
  12. __DEV__: true,
  13. },
  14. },
  15. {
  16. displayName: 'browser',
  17. testEnvironment: 'jsdom',
  18. testPathIgnorePatterns: ['/node_modules/', '.node.js', 'dist'],
  19. globals: {
  20. __NODE__: false,
  21. __BROWSER__: true,
  22. __DEV__: true,
  23. },
  24. },
  25. ],
  26. };