mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-04 22:37:26 +02:00
* Chunking optimization * Fix comments * Remove redundant `insertionsMinusRemovals` variable * Fix typo * Unblock Netlify builds * Add placeholder * Upgrade Playwright (fixes crash when debugging) * Fix `autoFocus` not working * Fix huge document test * Fix the previous issue without changing `useSlateSelector` * Retry `test:integration` * Re-implement `useSlateWithV` * Retry `test:integration` * Update docs * Update JS examples to match TS examples * Upload Playwright's `test-results` directory in CI to access traces * Change trace mode to `retain-on-first-failure` * Fix: `Locator.fill(text)` is flaky on Editable * Add changesets * Increase minimum `slate-dom` version * Update changeset * Update 09-performance.md * Deprecate the `useSlateWithV` hook * Fix errors and improve clarity in 09-performance.md * Minimum `slate-dom` version is now 0.116 * Update `yarn.lock`
26 lines
577 B
JavaScript
26 lines
577 B
JavaScript
const config = {
|
|
testMatch: ['<rootDir>/packages/slate-react/test/**/*.{js,ts,tsx,jsx}'],
|
|
preset: 'ts-jest',
|
|
transform: {
|
|
'^.+\\.(ts|tsx)$': [
|
|
'ts-jest',
|
|
{
|
|
tsconfig: '<rootDir>/packages/slate-react/tsconfig.json',
|
|
},
|
|
],
|
|
},
|
|
testEnvironment: 'jsdom',
|
|
collectCoverage: true,
|
|
collectCoverageFrom: ['./packages/slate-react/src/chunking/*'],
|
|
coverageThreshold: {
|
|
'./packages/slate-react/src/chunking/*': {
|
|
branches: 100,
|
|
functions: 100,
|
|
lines: 100,
|
|
statements: 100,
|
|
},
|
|
},
|
|
}
|
|
|
|
module.exports = config
|