Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Move setup-globals to jest.setup.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Stone authored and stonebk committed Jul 31, 2018
1 parent 417c9a4 commit 041dc2a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/js/createJestConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const createJestConfig = () => ({
testMatch: ['<rootDir>/**/__tests__/**/*.test.js', '<rootDir>/**/*.test.js'],
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', '<rootDir>/lib/', '<rootDir>/es/'],
setupTestFrameworkScriptFile: '<rootDir>/test-setup/setup-globals.js',
setupTestFrameworkScriptFile: '<rootDir>/jest.setup.js',
});

export default createJestConfig;
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* global expect */
/* eslint-disable zillow/import/no-extraneous-dependencies */
import { createSerializer } from 'jest-emotion';
import * as emotion from 'emotion';
import Enzyme from 'enzyme';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable zillow/import/no-extraneous-dependencies */
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

Expand Down
1 change: 1 addition & 0 deletions templates/zillow-eslint/_.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/lib
/styleguide
jest.config.js
jest.setup.js
styleguide.config.js

0 comments on commit 041dc2a

Please sign in to comment.