-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add Jest setup for unit testing #731
Conversation
jest.config.js
Outdated
module.exports = { | ||
testEnvironment: 'node', | ||
testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -4,7 +4,7 @@ module.exports = { | |||
browser: true, | |||
es6: true, | |||
node: true, | |||
mocha: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Carbon doesn't use mocha for unit testing.
@@ -0,0 +1,3 @@ | |||
{ | |||
"presets": ["next/babel"] | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8cccf23
to
63090b7
Compare
Description
Added Jest setup.
For a starter, I added a test for safari detection logic.