Skip to content

Commit

Permalink
Remove vue-cli plugin dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
txels committed Sep 27, 2024
1 parent 3939ee6 commit e72d26f
Show file tree
Hide file tree
Showing 4 changed files with 6,115 additions and 21,089 deletions.
14 changes: 11 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
module.exports = {
preset: "@vue/cli-plugin-unit-jest",
verbose: true,
//preset: "@vue/cli-plugin-unit-jest",
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
},
testMatch: [
'**/tests/unit/**/*.spec.[jt]s?(x)',
'**/__tests__/*.[jt]s?(x)'
], verbose: true,
transform: {
"\\.[jt]sx?$": "babel-jest",
'.+\\.(css|styl|less|sass|scss|jpg|jpeg|png|svg|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|avif)$': require.resolve('jest-transform-stub'),
'^.+\\.jsx?$': require.resolve('babel-jest'),
},
transformIgnorePatterns: ['/node_modules/'],
};
Loading

0 comments on commit e72d26f

Please sign in to comment.