* chore(tests): Update multiple screenshot test images for various specs * feat(screenshot-reviewer): Add screenshot review tool and update package.json scripts * fix(DICOMSRDisplayTool): Improve actor presence check in viewport * chore(tests): Update multiple screenshot assets for various specs * chore(tests): Integrate waitForPaintToSettle and waitForViewportsRendered in multiple specs for improved rendering stability * chore(tests): Update screenshot assets for SEGHydration and SEGNoHydration specs * test: update progressive loading screenshots * jest 30 test fixes for compatibility with pnpm cs3d * Use correct setDisplaySets instead of setDataId * fix: Naming change for LegacyVolumeViewport3D * Update to allow tolerance for contour tests * update * fix * refactor: Replace instanceof checks with utility functions for viewport type validation * fix: Update createSegmentationForViewport to handle undefined displaySetInstanceUID gracefully * bun lock * fix: Install cs3d with pnpm instead of bun * Update node version for playwright * Update to v5.0.0 of cs3d * fix: Build dependency * audit * Change to a web await retry assert * Fix timing related test failures * fix: Freehand close --------- Co-authored-by: Bill Wallace <wayfarer3130@gmail.com>
63 lines
2.2 KiB
JavaScript
63 lines
2.2 KiB
JavaScript
// https://babeljs.io/docs/en/options#babelrcroots
|
|
module.exports = {
|
|
babelrcRoots: ['./platform/*', './extensions/*', './modes/*'],
|
|
presets: ['@babel/preset-env', '@babel/preset-react', '@babel/preset-typescript'],
|
|
plugins: [
|
|
['@babel/plugin-transform-class-properties', { loose: true }],
|
|
'@babel/plugin-transform-typescript',
|
|
['@babel/plugin-transform-private-property-in-object', { loose: true }],
|
|
['@babel/plugin-transform-private-methods', { loose: true }],
|
|
'@babel/plugin-transform-class-static-block',
|
|
],
|
|
env: {
|
|
test: {
|
|
presets: [
|
|
[
|
|
// TODO: https://babeljs.io/blog/2019/03/19/7.4.0#migration-from-core-js-2
|
|
'@babel/preset-env',
|
|
{
|
|
modules: 'commonjs',
|
|
debug: false,
|
|
targets: { node: 'current' },
|
|
bugfixes: true,
|
|
},
|
|
],
|
|
'@babel/preset-react',
|
|
'@babel/preset-typescript',
|
|
],
|
|
plugins: [
|
|
// jest's babel coverage provider injects babel-plugin-istanbul when
|
|
// --collectCoverage is set; adding it here too makes babel 7 (pulled in
|
|
// by jest 30) throw "Duplicate plugin/preset detected".
|
|
'@babel/plugin-transform-object-rest-spread',
|
|
'@babel/plugin-syntax-dynamic-import',
|
|
'@babel/plugin-transform-regenerator',
|
|
'@babel/transform-destructuring',
|
|
'@babel/plugin-transform-runtime',
|
|
'@babel/plugin-transform-typescript',
|
|
'@babel/plugin-transform-class-static-block',
|
|
'@babel/plugin-transform-for-of',
|
|
['babel-plugin-transform-import-meta', { module: 'ES6' }],
|
|
],
|
|
},
|
|
production: {
|
|
presets: [
|
|
// WebPack handles ES6 --> Target Syntax
|
|
['@babel/preset-env', { modules: false }],
|
|
'@babel/preset-react',
|
|
'@babel/preset-typescript',
|
|
],
|
|
ignore: ['**/*.test.jsx', '**/*.test.js', '__snapshots__', '__tests__'],
|
|
},
|
|
development: {
|
|
presets: [
|
|
// WebPack handles ES6 --> Target Syntax
|
|
['@babel/preset-env', { modules: false }],
|
|
'@babel/preset-react',
|
|
'@babel/preset-typescript',
|
|
],
|
|
ignore: ['**/*.test.jsx', '**/*.test.js', '__snapshots__', '__tests__'],
|
|
},
|
|
},
|
|
};
|