-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from jpb06/fix/jest-memory-leaks
Fix/jest memory leaks
- Loading branch information
Showing
24 changed files
with
538 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
name: checks | ||
on: [push] | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
name: Main workflow | ||
jobs: | ||
install: | ||
runs-on: ubuntu-latest | ||
|
@@ -27,7 +32,7 @@ jobs: | |
node-version: '16.x' | ||
|
||
- name: Setting yarn version | ||
run: yarn policies set-version 1.22.10 | ||
run: yarn policies set-version 1.22.17 | ||
|
||
- name: Install dependencies | ||
run: yarn install --prefer-offline | ||
|
@@ -43,3 +48,9 @@ jobs: | |
|
||
- name: Generating coverage badges | ||
uses: jpb06/[email protected] | ||
|
||
- name: SonarCloud Scan | ||
uses: sonarsource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
const { pathsToModuleNameMapper } = require('ts-jest/utils'); | ||
|
||
const { | ||
compilerOptions: { paths: tsconfigPaths }, | ||
} = require('./tsconfig'); | ||
|
||
module.exports = { | ||
roots: ['<rootDir>/src/'], | ||
logHeapUsage: true, | ||
moduleFileExtensions: ['js', 'json', 'ts'], | ||
moduleNameMapper: { | ||
...pathsToModuleNameMapper(tsconfigPaths, { prefix: '<rootDir>/src' }), | ||
}, | ||
testRegex: '\\.(test|spec)\\.ts$', | ||
transform: { | ||
'^.+\\.(t|j)s$': 'ts-jest', | ||
'^.+\\.ts$': 'ts-jest', | ||
}, | ||
collectCoverageFrom: ['**/*.ts'], | ||
coveragePathIgnorePatterns: ['/tests-related/', '.dto\\.ts'], | ||
coverageDirectory: './coverage', | ||
testEnvironment: 'node', | ||
coverageReporters: ['json-summary', 'text', 'lcov'], | ||
globals: { | ||
'ts-jest': { | ||
isolatedModules: true, | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.