Skip to content

Commit 72bd9b5

Browse files
authored
refactor: extract each matcher's tests to its own test file (#35)
* Add jest setup tests file * Extract each matcher's tests to its own test file
1 parent b764bc9 commit 72bd9b5

13 files changed

+406
-401
lines changed

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ const jestConfig = require('kcd-scripts/jest')
22

33
module.exports = Object.assign(jestConfig, {
44
testEnvironment: 'jest-environment-jsdom',
5+
setupTestFrameworkScriptFile: '<rootDir>/setupTests.js',
56
})

setupTests.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import {plugins} from 'pretty-format'
2+
import './src/extend-expect'
3+
4+
expect.addSnapshotSerializer(plugins.ConvertAnsi)

0 commit comments

Comments
 (0)