Skip to content

Commit

Permalink
fix: when running in jest context
Browse files Browse the repository at this point in the history
  • Loading branch information
moshensky authored Sep 11, 2024
1 parent 6b8412d commit acf95ce
Show file tree
Hide file tree
Showing 11 changed files with 4,596 additions and 1,526 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ jobs:
run: npm run format
- name: Make sure docs can be build
run: npm run build:docs
- name: Run jest smoke tests
run: npm run test:jest
13 changes: 6 additions & 7 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
.github
.vscode
bin
docs
examples
coverage
lib/*.spec.*
src
.eslintignore
.eslintrc.js
.mocharc.json
.ncurc.js
.nvmrc
.prettierrc.json
eslint.config.mjs
tsconfig.json
lib/*.spec.*
*.tgz
examples
docs
*.tgz
11 changes: 11 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/

/** @type {import('jest').Config} */
const config = {
setupFilesAfterEnv: ['./lib/toMatchPdfSnapshot'],
}

module.exports = config
Loading

0 comments on commit acf95ce

Please sign in to comment.