Skip to content

Commit

Permalink
chore: move setypTests into demo folder
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh95 committed Jun 11, 2022
1 parent 473a380 commit 41019e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config/jest/setupTests.js → demo/setupTests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '@testing-library/jest-dom/extend-expect';
import { jestPreviewConfigure } from '../../dist/index';
import '../../demo/global.css';
import '../../demo/assets/_scss/global-style.scss';
import { jestPreviewConfigure } from '../dist/index';
import './global.css';
import './assets/_scss/global-style.scss';

jestPreviewConfigure({
publicFolder: 'demo/public',
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
// TODO: To report coverage in `src`. They are compiled to `dist` so it's difficult to report coverage directly
],
coveragePathIgnorePatterns: [],
setupFilesAfterEnv: ['./config/jest/setupTests.js'],
setupFilesAfterEnv: ['<rootDir>/demo/setupTests.js'],
testEnvironment: 'jsdom',
modulePaths: ['<rootDir>/demo'],
transform: {
Expand Down

0 comments on commit 41019e6

Please sign in to comment.