Skip to content

Commit

Permalink
Bump dependencies (#71)
Browse files Browse the repository at this point in the history
* ci(npm): set lockfile version to 2 in .npmrc

* chore(contentful): bump contentful to v10

* fix(types): use correct contentful types

fetch correct WITH_ALL_LOCALES and convert to localized entries & assets

* chore(deps): bump patch & minor dependencies

* fix(deps): sync dependencies

* chore(deps): bump major dependencies

* fix(deps): bump dependencies

* fix(eslint): fix eslint issues

* fix(ci): tweak ci setgtings

* fix(lint): ignore @typescript-eslint/consistent-type-definitions at server/index

it's required to use interface here as the global one is also an interface

* tweaks jest settings

* ci(jest): tweaks jest settings to prevent coverage memory leak

* fix(sonar): fix sonar issues

* fix(contentful): removes invalid locales param in pagedGet query

* fix(watch): replace ngrok with localtunnel

ngrok requires a login + token
  • Loading branch information
bezoerb committed Feb 3, 2024
1 parent 9d2a819 commit 6b95e87
Show file tree
Hide file tree
Showing 82 changed files with 9,069 additions and 6,361 deletions.
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

0 comments on commit 6b95e87

Please sign in to comment.