From b59cd97ae5b7abe0be6d5773273aeb59dad67c93 Mon Sep 17 00:00:00 2001 From: Arie Trouw Date: Sat, 9 Sep 2023 11:53:13 -0700 Subject: [PATCH] deploy 1.4.0 --- jest.config.cjs | 26 +++++--------------------- package.json | 2 +- yarn.lock | 4 ++-- 3 files changed, 8 insertions(+), 24 deletions(-) diff --git a/jest.config.cjs b/jest.config.cjs index 3ca48a0..97a9027 100644 --- a/jest.config.cjs +++ b/jest.config.cjs @@ -1,36 +1,20 @@ const generateJestConfig = ({ esModules }) => { const esModulesList = Array.isArray(esModules) ? esModules.join('|') : esModules return { - coveragePathIgnorePatterns: ['./src/AWS'], - coverageThreshold: { - global: { - branches: 50, - functions: 70, - lines: 70, - statements: 70, - }, - }, + coveragePathIgnorePatterns: ['/(.*)/dist'], moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1', }, preset: 'ts-jest/presets/default-esm', - setupFiles: ['dotenv/config'], - setupFilesAfterEnv: ['jest-extended/all', 'jest-sorted'], + setupFilesAfterEnv: ['jest-sorted', 'jest-extended/all'], testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$', - testTimeout: 30000, + testTimeout: 20000, transform: { - [`(${esModulesList}).+\\.js$`]: [ - 'babel-jest', - { - babelConfig: 'babel.config.json', - useESM: true, - }, - ], + [`(${esModulesList}).+\\.js$`]: 'babel-jest', '^.+\\.tsx?$': [ 'ts-jest', { tsconfig: 'tsconfig.test.json', - useESM: true, }, ], }, @@ -39,4 +23,4 @@ const generateJestConfig = ({ esModules }) => { } // eslint-disable-next-line no-undef -module.exports = generateJestConfig({ esModules: ['is-ip', 'ip-regex'] }) +module.exports = generateJestConfig({ esModules: ['is-ip', 'ip-regex', 'lodash-es', 'uuid'] }) diff --git a/package.json b/package.json index ac6ec61..a1d7bb3 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "1.3.0", + "version": "1.4.0", "author": { "email": "support@xylabs.com", "name": "XY Labs Development Team", diff --git a/yarn.lock b/yarn.lock index 7a4eda4..278d178 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15477,11 +15477,11 @@ __metadata: "typescript@patch:typescript@^5.2.2#~builtin": version: 5.2.2 - resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin::version=5.2.2&hash=ad5954" + resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin::version=5.2.2&hash=f3b441" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 07106822b4305de3f22835cbba949a2b35451cad50888759b6818421290ff95d522b38ef7919e70fb381c5fe9c1c643d7dea22c8b31652a717ddbd57b7f4d554 + checksum: 0f4da2f15e6f1245e49db15801dbee52f2bbfb267e1c39225afdab5afee1a72839cd86000e65ee9d7e4dfaff12239d28beaf5ee431357fcced15fb08583d72ca languageName: node linkType: hard