Skip to content

Commit

Permalink
deploy 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Sep 9, 2023
1 parent 94c1e78 commit b59cd97
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
26 changes: 5 additions & 21 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -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: ['<rootDir>/(.*)/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,
},
],
},
Expand All @@ -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'] })
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.3.0",
"version": "1.4.0",
"author": {
"email": "[email protected]",
"name": "XY Labs Development Team",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15477,11 +15477,11 @@ __metadata:

"typescript@patch:typescript@^5.2.2#~builtin<compat/typescript>":
version: 5.2.2
resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin<compat/typescript>::version=5.2.2&hash=ad5954"
resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin<compat/typescript>::version=5.2.2&hash=f3b441"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 07106822b4305de3f22835cbba949a2b35451cad50888759b6818421290ff95d522b38ef7919e70fb381c5fe9c1c643d7dea22c8b31652a717ddbd57b7f4d554
checksum: 0f4da2f15e6f1245e49db15801dbee52f2bbfb267e1c39225afdab5afee1a72839cd86000e65ee9d7e4dfaff12239d28beaf5ee431357fcced15fb08583d72ca
languageName: node
linkType: hard

Expand Down

0 comments on commit b59cd97

Please sign in to comment.