fix: unit tests running with integration environment

This commit is contained in:
Matthew Little
2020-04-15 10:59:44 +02:00
parent 07fc566db6
commit f7b254d646
8 changed files with 18 additions and 13 deletions

View File

@@ -1,10 +1,11 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
rootDir: '.',
rootDir: 'src',
testMatch: ['<rootDir>/tests/**/*.ts'],
testPathIgnorePatterns: ['<rootDir>/tests/setup.ts'],
collectCoverageFrom: ['<rootDir>/src/**/*.ts'],
collectCoverageFrom: ['<rootDir>/**/*.ts'],
coverageDirectory: '../coverage',
globalSetup: '<rootDir>/tests/setup.ts',
transformIgnorePatterns: [
"node_modules/(?!(@blockstack/stacks-transactions)/)"