Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump dependencies #71

Merged
merged 15 commits into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [16]
node: [18, 20]
os: [ubuntu-latest]

steps:
Expand Down Expand Up @@ -42,13 +42,13 @@ jobs:

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.node, '16')
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.node, '18')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

# - name: Run Coveralls
# uses: coverallsapp/github-action@master
# if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.node, '16')
# if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.node, '18')
# with:
# github-token: '${{ secrets.GITHUB_TOKEN }}'
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lockfile-version=2
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/** @type {import('jest').Config} */
export default {
maxConcurrency: 1,
maxWorkers: '50%',
workerIdleMemoryLimit: '512MB',
coverageProvider: 'v8',
collectCoverage: true,
coverageReporters: ['text', 'clover', 'json', 'lcov'],
testResultsProcessor: 'jest-sonar-reporter',
Expand Down
15 changes: 7 additions & 8 deletions jest.preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@ export default {
passWithNoTests: true,
extensionsToTreatAsEsm: ['.ts'],
transform: {
'^.+\\.[tj]s$': 'ts-jest',
'^.+\\.[tj]s$': ['ts-jest', {
useESM: true,
tsconfig: '<rootDir>/tsconfig.json',
}]
},
transformIgnorePatterns: ['node_modules/(?!(serialize-error)|(exit-hook))'],
transformIgnorePatterns: ['node_modules/(?!(serialize-error)|(exit-hook)|(chalk)|(find-cache-dir)|(pkg-dir)|(find-up)|(locate-path)|(p-locate)|(p-limit)|(yocto-queue)|(path-exists)|(change-case))'],
preset: 'ts-jest/presets/js-with-ts-esm',
moduleDirectories: ['node_modules', `${__dirname}/packages`],
coverageReporters: ['text', 'clover', 'json', 'lcov'],
coveragePathIgnorePatterns: ['/node_modules/', '__test__'],
globals: {
'ts-jest': {
useESM: true,
tsconfig: '<rootDir>/tsconfig.json',
},
},


moduleNameMapper: {
// Removes .js at the end to match typescript files
'^(\\.{1,2}/.*)\\.js$': '$1',
Expand Down
Loading
Loading