mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 10:36:43 +02:00

* develop: (56 commits) chore(deps): bump dompurify from 2.3.10 to 2.4.0 (#3444) chore(deps): bump stylis from 4.1.1 to 4.1.2 (#3439) chore(deps-dev): bump webpack-dev-server from 4.10.1 to 4.11.0 (#3450) Cleanup fixing som lingering issues Apply suggestions from code review chore(deps-dev): bump eslint-plugin-jest from 27.0.1 to 27.0.4 (#3458) chore(deps-dev): bump @typescript-eslint/eslint-plugin (#3457) chore(deps-dev): bump concurrently from 7.3.0 to 7.4.0 (#3445) chore(deps-dev): bump @babel/preset-env from 7.18.10 to 7.19.0 (#3442) chore(deps-dev): bump @typescript-eslint/parser from 5.36.1 to 5.37.0 (#3451) chore(deps-dev): bump @babel/core from 7.18.13 to 7.19.0 (#3447) chore(deps-dev): bump jest-environment-jsdom from 29.0.2 to 29.0.3 (#3441) chore(deps-dev): bump babel-jest from 29.0.2 to 29.0.3 (#3448) chore(deps-dev): bump eslint from 8.23.0 to 8.23.1 chore: fix eslint warnings chore: Turn off eslint rules in spec, demos, etc. chore(deps-dev): bump typescript from 4.8.2 to 4.8.3 (#3446) chore(deps): bump actions/checkout from 2 to 3 (#3449) change wording of console log message (use comma) Moving out tests from mermaid.spec.js ...
26 lines
952 B
JavaScript
26 lines
952 B
JavaScript
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
const path = require('path');
|
|
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
|
|
module.exports = {
|
|
testEnvironment: 'jsdom',
|
|
preset: 'ts-jest',
|
|
transform: {
|
|
'^.+\\.tsx?$': ['jest-esbuild', { banner: '"use strict";' }],
|
|
'^.+\\.jsx?$': ['jest-esbuild', { banner: '"use strict";' }],
|
|
'^.+\\.jison$': [
|
|
path.resolve(__dirname, './src/jison/transformer.js'),
|
|
{ 'token-stack': true },
|
|
],
|
|
},
|
|
coveragePathIgnorePatterns: [
|
|
'/node_modules/',
|
|
'^.+\\.jison$', // might be able to fix in future if .jison adds source-map support
|
|
],
|
|
transformIgnorePatterns: ['/node_modules/(?!dagre-d3-renderer/lib|khroma).*\\.js'],
|
|
testPathIgnorePatterns: ['/node_modules/', '.cache', './cypress'],
|
|
moduleNameMapper: {
|
|
'\\.(css|scss)$': 'identity-obj-proxy',
|
|
},
|
|
moduleFileExtensions: ['js', 'json', 'jsx', 'ts', 'tsx', 'node', 'jison'],
|
|
};
|