Skip to content

Commit

Permalink
e2e tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ariel Gentile <[email protected]>
  • Loading branch information
genaris committed Oct 18, 2024
1 parent e1c487c commit 2b36eed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"format": "yarn prettier --write",
"check-format": "yarn prettier --list-different",
"test": "yarn workspaces run test --passWithNoTests",
"test:e2e": "jest --config ./packages/server/test/jest-e2e.json",
"lint": "eslint --ignore-path .gitignore --ignore-pattern '**/esm/' .",
"validate": "yarn lint && yarn check-types && yarn check-format"
},
Expand Down
5 changes: 1 addition & 4 deletions packages/client/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ const config: Config.InitialOptions = {
],
'^.+\\.jsx?$': require.resolve('babel-jest'),
},
moduleNameMapper: {
// Force module uuid to resolve with the CJS entry point, because Jest does not support package.json.exports. See https://github.com/uuidjs/uuid/issues/451
uuid: require.resolve('uuid'),
},
moduleNameMapper: { '^uuid$': 'uuid' },
}

export default config
3 changes: 2 additions & 1 deletion packages/server/test/jest-e2e.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"testRegex": ".e2e-spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
}
},
"moduleNameMapper": { "^uuid$": "uuid" }
}

0 comments on commit 2b36eed

Please sign in to comment.