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

chore: migrate tests from karma to jest #62

Merged
merged 4 commits into from
Jun 18, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
},
env: {
browser: true,
jasmine: true,
jest: true,
commonjs: true
},
globals: {
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
- [Setup](#setup)
- [Develop](#develop)
- [Run webpack-dev-server](#run-webpack-dev-server)
- [Run karma test](#run-karma-test)
- [Run jest test](#run-jest-test)
- [Pull Request](#pull-request)
- [💬 Contributing](#-contributing)
- [🍞 TOAST UI Family](#-toast-ui-family)
Expand Down Expand Up @@ -222,7 +222,7 @@ $ npm run serve
$ npm run serve:ie8 # Run on Internet Explorer 8
```

#### Run karma test
#### Run jest test

``` sh
$ npm run test
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test",
"tui-note.config.js",
"tuidoc.config.json",
"karma.conf.js",
"jest.config.js",
"webpack.config.js",
"package.json",
"package-lock.json"
Expand Down
8 changes: 8 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* eslint-disable strict */
module.exports = {
moduleFileExtensions: ['js'],
testEnvironment: 'jsdom',
testMatch: ['<rootDir>/**/*.spec.js'],
transformIgnorePatterns: ['<rootDir>/node_modules/'],
clearMocks: true
};
153 changes: 0 additions & 153 deletions karma.conf.js

This file was deleted.

Loading