1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-01-17 21:49:20 +01:00
slate/jest.config.js
Nemanja Tosic 1b205c087b
Fix stale decorations (#4876)
* test changes

* fix decoration not updating

* Add changeset

* Fix lint issues

* Tests with earlier version of Node.js

* Bump node version on CI

The base typescript config uses ESNext as target, so presumably the
latest node should be used.

Co-authored-by: Dylan Schiemann <dylan@dojotoolkit.org>
2022-03-09 04:06:18 -07:00

13 lines
274 B
JavaScript

const config = {
testMatch: ['<rootDir>/packages/slate-react/test/**/*.{js,ts,tsx,jsx}'],
preset: 'ts-jest',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/packages/slate-react/tsconfig.json',
},
},
testEnvironment: 'jsdom',
}
module.exports = config