mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
d5b06ab3d6
* setup nock to prevent tests from making any external requests * mock all calls to posthog sdk
14 lines
345 B
JavaScript
14 lines
345 B
JavaScript
/** @type {import('jest').Config} */
|
|
module.exports = {
|
|
...require('../../jest.config'),
|
|
testEnvironmentOptions: {
|
|
url: 'http://localhost/',
|
|
},
|
|
globalSetup: '<rootDir>/test/setup.ts',
|
|
globalTeardown: '<rootDir>/test/teardown.ts',
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
'^@db/(.*)$': '<rootDir>/src/databases/$1',
|
|
},
|
|
};
|