mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
build: Upgrade some of the backend dev-tooling (no-changelog) (#4589)
* upgrade ts-node * move tslint and typescript to a single place * source-map-support should be loaded in the `n8n` bin script, and not in core * upgrade jest * Support only node.js 14, 16, or 18
This commit is contained in:
committed by
GitHub
parent
edebad1a89
commit
0148631d28
@@ -1,22 +1,23 @@
|
||||
const { compilerOptions } = require('./tsconfig.json');
|
||||
|
||||
const tsJestOptions = {
|
||||
isolatedModules: true,
|
||||
tsconfig: {
|
||||
...compilerOptions,
|
||||
declaration: false,
|
||||
sourceMap: false,
|
||||
skipLibCheck: true,
|
||||
},
|
||||
};
|
||||
|
||||
/** @type {import('jest').Config} */
|
||||
module.exports = {
|
||||
verbose: true,
|
||||
preset: 'ts-jest',
|
||||
testEnvironment: 'node',
|
||||
testRegex: '\\.(test|spec)\\.(js|ts)$',
|
||||
testPathIgnorePatterns: ['/dist/', '/node_modules/'],
|
||||
globals: {
|
||||
'ts-jest': {
|
||||
isolatedModules: true,
|
||||
tsconfig: {
|
||||
...compilerOptions,
|
||||
declaration: false,
|
||||
sourceMap: false,
|
||||
skipLibCheck: true,
|
||||
},
|
||||
},
|
||||
transform: {
|
||||
'^.+\\.ts$': ['ts-jest', tsJestOptions],
|
||||
},
|
||||
moduleNameMapper: {
|
||||
'^@/(.*)$': '<rootDir>/src/$1',
|
||||
|
||||
Reference in New Issue
Block a user