Skip to content

Commit 7c1dab6

Browse files
committed
upgrade vue-cli
1 parent 6a43f87 commit 7c1dab6

File tree

3 files changed

+24
-27
lines changed

3 files changed

+24
-27
lines changed
Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
module.exports = {
2-
moduleFileExtensions: ['js', 'jsx', 'json', 'vue', 'ts'],
2+
moduleFileExtensions: ['js', 'json', 'vue', 'ts'],
33

4-
transform: {
5-
'^.+\\.vue$': 'vue-jest',
6-
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$':
7-
'jest-transform-stub',
8-
'^.+\\.jsx?$': 'babel-jest',
9-
'^.+\\.tsx?$': 'ts-jest',
10-
},
11-
moduleNameMapper: {
12-
'^@/(.*)$': '<rootDir>/src/$1',
13-
'^vue$': 'vue/dist/vue.common.js',
14-
},
15-
snapshotSerializers: ['jest-serializer-vue'],
16-
testMatch: [
17-
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)',
18-
],
19-
testURL: 'http://localhost/',
20-
collectCoverage: true,
21-
coverageReporters: ['lcov'],
22-
setupTestFrameworkScriptFile: '<rootDir>/test_setup/setup-jest.ts',
4+
transform: {
5+
'^.+\\.vue$': 'vue-jest',
6+
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$':
7+
'jest-transform-stub',
8+
'^.+\\.js$': 'babel-jest',
9+
'^.+\\.ts$': 'ts-jest',
10+
},
11+
moduleNameMapper: {
12+
'^@/(.*)$': '<rootDir>/src/$1',
13+
'^vue$': 'vue/dist/vue.common.js',
14+
},
15+
snapshotSerializers: ['jest-serializer-vue'],
16+
testMatch: ['<rootDir>/__tests__/*.(js|ts)'],
17+
testURL: 'http://localhost/',
18+
collectCoverage: true,
19+
coverageReporters: ['lcov'],
20+
setupFilesAfterEnv: ['<rootDir>/test_setup/setup-jest.ts'],
2321
};

packages/aws-amplify-vue/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
"@aws-amplify/core": "^1.1.2",
2525
"@aws-amplify/ui": "^1.0.25",
2626
"@types/jest": "^24.0.18",
27-
"@vue/cli-plugin-babel": "^3.0.1",
28-
"@vue/cli-plugin-typescript": "^3.11.0",
29-
"@vue/cli-plugin-unit-jest": "^3.0.1",
30-
"@vue/cli-service": "^3.0.1",
31-
"@vue/test-utils": "^1.0.0-beta.20",
27+
"@vue/cli-plugin-babel": "^4.0.0-rc.7",
28+
"@vue/cli-plugin-typescript": "^4.0.0-rc.7",
29+
"@vue/cli-plugin-unit-jest": "^4.0.0-rc.7",
30+
"@vue/cli-service": "^4.0.0-rc.7",
31+
"@vue/test-utils": "^1.0.0-beta.29",
3232
"babel-core": "7.0.0-bridge.0",
3333
"jest": "^24.9.0",
34-
"postcss-loader": "^2.1.6",
34+
"postcss-loader": "^3.0.0",
3535
"ts-jest": "^24.1.0",
3636
"typescript": "^3.6.3",
3737
"vue-template-compiler": "^2.6.10"

packages/aws-amplify-vue/vue.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
module.exports = {
1515
css: {
16-
modules: true,
1716
/*
1817
! IMPORTANT !
1918
If css.extract is true (which it is by default),

0 commit comments

Comments
 (0)