Skip to content

Commit

Permalink
fix(jest): allow jest to be run even if there is a .swcrc
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah committed Mar 5, 2023
1 parent 833941a commit 6f188f2
Show file tree
Hide file tree
Showing 47 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion apps/jote/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
globals: {},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': ['@swc/jest'],
'^.+\\.[tj]s$': ['@swc/jest', { swcrc: false }],
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/apps/jote',
Expand Down
2 changes: 1 addition & 1 deletion libs/ast-stringify/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/citations/apa-parser/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/citations/crossref-to-csl/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
globals: {},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../../coverage/libs/citations/crossref-to-csl',
Expand Down
2 changes: 1 addition & 1 deletion libs/citations/csl-consolidate/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
globals: {},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../../coverage/libs/citations/csl-consolidate',
Expand Down
2 changes: 1 addition & 1 deletion libs/citations/csl-to-biblatex/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/jast/jast-util-from-csl/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/jast/jast-util-to-csl/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/jast/jast-util-to-texast/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/jast/jast/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/notion/html-to-notion-blocks/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/notion/rehype-notion/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/ojs/ojs-client/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+.[tj]sx?$': ['@swc/jest'],
'^.+.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/ooxast/ooxast-util-citation-plugin/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/ooxast/ooxast-util-citations/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+.[tj]sx?$': ['@swc/jest'],
'^.+.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/ooxast/ooxast-util-get-style/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+.[tj]sx?$': ['@swc/jest'],
'^.+.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/ooxast/ooxast-util-parse-bib-browser/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+.[tj]sx?$': ['@swc/jest'],
'^.+.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/ooxast/ooxast-util-parse-bib-node/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+.[tj]sx?$': ['@swc/jest'],
'^.+.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/ooxast/ooxast-util-parse-bib/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+.[tj]sx?$': ['@swc/jest'],
'^.+.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/ooxast/ooxast-util-properties/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/ooxast/ooxast-util-remove-rsid/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+.[tj]sx?$': ['@swc/jest'],
'^.+.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/ooxast/ooxast/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const config = {
testEnvironment: 'node',
transform: {
//eslint-disable-next-line
'^.+.[tj]sx?$': ['@swc/jest'],
'^.+.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/processors/docx-to-jats/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
globals: {},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../../coverage/libs/processors/docx-to-jats',
Expand Down
2 changes: 1 addition & 1 deletion libs/processors/docx-to-tex/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const config = {
// transform: {},
testEnvironment: 'node',
transform: {
'^.+.[tj]sx?$': ['@swc/jest'],
'^.+.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/processors/jats-to-tex/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
globals: {},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../../coverage/libs/processors/jats-to-tex',
Expand Down
2 changes: 1 addition & 1 deletion libs/processors/jote-docx-tex/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
// },
testEnvironment: 'node',
// transform: {
// '^.+\\.[tj]sx?$': ['@swc/jest'],
// '^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
// },
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/rejour/rejour-frontmatter/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/rejour/rejour-meta/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/rejour/rejour-move-abstract/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/rejour/rejour-parse/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/rejour/rejour-relatex/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/rejour/rejour-stringify/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/relatex/relatex-add-preamble/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/relatex/relatex-stringify/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/reoff/reoff-cite/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+.[tj]sx?$': ['@swc/jest'],
'^.+.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/reoff/reoff-clean/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+.[tj]sx?$': ['@swc/jest'],
'^.+.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/reoff/reoff-parse-references-browser/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+.[tj]sx?$': ['@swc/jest'],
'^.+.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/reoff/reoff-parse-references/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+.[tj]sx?$': ['@swc/jest'],
'^.+.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/reoff/reoff-rejour/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+.[tj]sx?$': ['@swc/jest'],
'^.+.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/texast/texast-util-add-preamble/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/texast/texast-util-to-latex/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/texast/texast/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/utils/misc/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const config = {
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
transformIgnorePatterns: [],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
Expand Down
2 changes: 1 addition & 1 deletion libs/utils/ojs-to-preamble/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
globals: {},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': ['@swc/jest'],
'^.+\\.[tj]sx?$': ['@swc/jest', { swcrc: false }],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../../coverage/libs/utils/ojs-to-preamble',
Expand Down
Loading

0 comments on commit 6f188f2

Please sign in to comment.