Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace mocha with jest #470

Merged
merged 6 commits into from Oct 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Expand Up @@ -29,10 +29,8 @@ jobs:
- name: Build sources
run: npm run build

- name: Run tests with xvfb available
uses: GabrielBB/xvfb-action@v1
with:
run: npm run test
- name: Run tests
run: npm run test

lint:
runs-on: ubuntu-latest
Expand Down
20 changes: 20 additions & 0 deletions jest.config.js
@@ -0,0 +1,20 @@
// Jest configuration
// Reference: https://jestjs.io/docs/configuration

module.exports = {
testMatch: [
'**/test/*.js'
],
testPathIgnorePatterns: [
'<rootDir>/test/helpers.js'
],
setupFilesAfterEnv: [
'<rootDir>/test/helpers.js'
],
watchPathIgnorePatterns: [
// Ignore the output generated by plugin tests
// when watching for changes to avoid the test
// runner continuously re-running tests
'<rootDir>/test/output'
]
};