1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 02:19:52 +02:00

Jest testing for slate-react (#4459)

* initial skeleton for jest testing

* run in serial mocha, then jest on slate-react only

* run-s without glob patterns https://github.com/yarnpkg/berry/issues/22

* don't run mocha on slate-react package

* use yarn run instead of run-s
This commit is contained in:
Eric Charles
2021-09-01 23:25:11 +02:00
committed by GitHub
parent e51566ada8
commit d338dcc7ce
5 changed files with 1409 additions and 35 deletions

9
babel.config.js Normal file
View File

@@ -0,0 +1,9 @@
// Needed for jest.
module.exports = {
inputSourceMap: true,
presets: [
'@babel/preset-typescript',
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-react',
],
}