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

env: remove karma(continue #628) #630

Merged
merged 51 commits into from
Sep 1, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
250f3fe
env: remove dependencies related `karma`
lja1018 Aug 11, 2021
85c9416
chore: remove directory from `.gitignore`
lja1018 Aug 19, 2021
ec7a5b8
chore: remove karma from `bower.json`
lja1018 Aug 19, 2021
ede34c0
chore: remove `jasmine`, `jquery` from `.eslintrc.js`
lja1018 Aug 19, 2021
5c1297f
env: add `jest`
lja1018 Aug 19, 2021
e059086
env: update dependencies related `eslint`
lja1018 Aug 19, 2021
ad656de
chore: remove `eslint-loader` in `webpack.config.js`
lja1018 Aug 19, 2021
ef054a8
chore: remove `karma.config.js`
lja1018 Aug 19, 2021
f518530
env: add `eslint-plugin-jest`
lja1018 Aug 19, 2021
0c9fe5f
chore: add `eslint-plugin-jest` config to `.eslintrc.js`
lja1018 Aug 19, 2021
84bb6e9
chore: update test command
lja1018 Aug 20, 2021
69a635d
env: add jest config
lja1018 Aug 20, 2021
e37cab9
env: add `jest-canvas-mock`
lja1018 Aug 24, 2021
83917b5
fix: resolve webpack alias
lja1018 Aug 24, 2021
d969061
refactor: remove globals in `.eslintrc.js`
lja1018 Aug 24, 2021
185f8e4
refactor: remove `fabric` in webpack `externals`
lja1018 Aug 24, 2021
026eb97
refactor: apply jest to `cropper.spec.js`
lja1018 Aug 24, 2021
4ecea87
env: add `jest-svg-transformer`
lja1018 Aug 24, 2021
1890fed
refactor: add `dot-notation` rule to `.eslintrc.js`
lja1018 Aug 24, 2021
7210c62
refactor: apply jest to `action.spec.js`
lja1018 Aug 24, 2021
fe92253
refactor: apply jest to `arrowLine.spec.js`
lja1018 Aug 24, 2021
4d46e65
env: add file mocking to jest
lja1018 Aug 25, 2021
c7688a6
refactor: apply jest to `command.spec.js`
lja1018 Aug 25, 2021
485096f
refactor: apply code review
lja1018 Aug 26, 2021
d5b891d
refactor: apply code review 2
lja1018 Aug 26, 2021
8a05513
refactor: apply jest to `cropzone.spec.js`
lja1018 Aug 26, 2021
4f8e550
refactor: apply jest to `drawingMode.spec.js`
lja1018 Aug 26, 2021
1fde22d
refactor: apply jest to `filter.spec.js`
lja1018 Aug 26, 2021
3710cce
refactor: apply `async`, `await` instead `return Promise`
lja1018 Aug 26, 2021
4df1226
refactor: apply jest to `flip.spec.js`
lja1018 Aug 26, 2021
d66c672
refactor: apply jest to `graphics.spec.js`
lja1018 Aug 27, 2021
7e2b61d
refactor: apply jest to `history.spec.js`
lja1018 Aug 27, 2021
c34e09e
refactor: apply jest to `icon.spec.js`
lja1018 Aug 27, 2021
241eeac
refactor: apply jest to `imageEditor.spec.js`
lja1018 Aug 27, 2021
4f38fa4
refactor: remove unused env
lja1018 Aug 27, 2021
480554d
refactor: change `isFunction` to use `typeof`
lja1018 Aug 27, 2021
d614e15
refactor: apply jest to `invoker.spec.js`
lja1018 Aug 27, 2021
31a0828
refactor: apply jest to `line.spec.js`
lja1018 Aug 27, 2021
d0868be
refactor: apply jest to `promiseApi.spec.js`
lja1018 Aug 30, 2021
72b6b83
refactor: apply jest to `resize.spec.js`
lja1018 Aug 30, 2021
9945c87
refactor: apply jest to `rotation.spec.js`
lja1018 Aug 30, 2021
315250d
refactor: apply jest to `selectionModifyHelper.spec.js`
lja1018 Aug 30, 2021
c326f65
refactor: apply jest to `shape.spec.js`
lja1018 Aug 30, 2021
a41ae1d
refactor: apply jest to `text.spec.js`
lja1018 Aug 30, 2021
75178b8
refactor: apply jest to `theme.spec.js`
lja1018 Aug 30, 2021
6b4b342
refactor: apply jest to `ui.spec.js`
lja1018 Aug 30, 2021
d17bfc9
refactor: apply jest to `uiRange.spec.js`
lja1018 Aug 30, 2021
2a3117d
refactor: apply jest to `zoom.spec.js`
lja1018 Aug 31, 2021
6e3189b
Merge branch 'master' into env/remove-karma(continue)
lja1018 Aug 31, 2021
12223b6
refactor: change to `toMatchObject` from `expect.objectContaining`
lja1018 Aug 31, 2021
e5016a0
chore: apply code review
lja1018 Sep 1, 2021
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
Prev Previous commit
Next Next commit
env: add jest-canvas-mock
  • Loading branch information
lja1018 committed Aug 24, 2021
commit e37cab97734a775d12316318d2bd686e21143cd1
1 change: 1 addition & 0 deletions apps/image-editor/jest-setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import 'jest-canvas-mock';
4 changes: 4 additions & 0 deletions apps/image-editor/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
const path = require('path');
const setupFile = path.resolve(__dirname, './jest-setup.js');

module.exports = {
moduleFileExtensions: ['js'],
testEnvironment: 'jsdom',
Expand All @@ -10,4 +13,5 @@ module.exports = {
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/js/$1',
},
setupFiles: [setupFile],
};
65 changes: 65 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"devDependencies": {
"jest": "^27.0.6",
"jest-canvas-mock": "^2.3.1",
"jest-esm-transformer": "^1.0.0",
"lerna": "^3.22.1",
"prettier": "^2.0.5"
Expand Down