Skip to content

Commit

Permalink
test(integration-tests): with segfault logger
Browse files Browse the repository at this point in the history
  • Loading branch information
millsp committed Jul 21, 2021
1 parent 1040283 commit 871fa85
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/packages/integration-tests/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules
.DS_Store
yarn-error.log
pnpm-debug.log
crash.log

*.db

Expand Down
1 change: 1 addition & 0 deletions src/packages/integration-tests/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ module.exports = {
collectCoverageFrom: ['src/**/*.ts', '!**/__tests__/**/*'],
// todo duplicated serializer from client package, should share
snapshotSerializers: ['./src/__tests__/__helpers__/snapshotSerializer.ts'],
setupFiles: ['./src/__tests__/jestSetup.js'],
}
1 change: 1 addition & 0 deletions src/packages/integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"pg": "8.6.0",
"prettier": "2.3.2",
"replace-string": "3.1.0",
"segfault-handler": "^1.3.0",
"sqlite-async": "1.1.1",
"sqlite3": "5.0.2",
"string-hash": "1.1.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const SegfaultHandler = require('segfault-handler')

SegfaultHandler.registerHandler('crash.log')
26 changes: 26 additions & 0 deletions src/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 871fa85

Please sign in to comment.