Skip to content

Commit

Permalink
Add testing
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv committed Mar 15, 2022
1 parent 026ef7e commit 9b82bd3
Show file tree
Hide file tree
Showing 11 changed files with 21,149 additions and 13,302 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ jobs:
run: |
git status
git --no-pager diff
- name: Testing
run: |
npm run test --if-present
24 changes: 24 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const esModules = ['p-limit', 'yocto-queue'].join('|')

module.exports = {
preset: 'ts-jest',
moduleFileExtensions: ['js', 'vue', 'ts'],
collectCoverageFrom: [
'src/**/*.{js,vue}',
'!**/node_modules/**',
],
coverageReporters: [
'html',
'text-summary',
],
setupFilesAfterEnv: [
'<rootDir>/tests/setup.js',
],
testEnvironment: 'jsdom',
transform: {
'^.+\\.ts$': 'ts-jest',
'^.+\\.js$': 'babel-jest',
'^.+\\.vue$': '@vue/vue2-jest',
},
transformIgnorePatterns: [`/node_modules/(?!${esModules})`],
}
Loading

0 comments on commit 9b82bd3

Please sign in to comment.