zhangjie 2 vuotta sitten
vanhempi
commit
11b7f6ebe4
5 muutettua tiedostoa jossa 20 lisäystä ja 671 poistoa
  1. 0 11
      .eslintrc.js
  2. 0 3
      jest.config.js
  3. 0 4
      package.json
  4. 0 12
      tests/unit/example.spec.js
  5. 20 641
      yarn.lock

+ 0 - 11
.eslintrc.js

@@ -17,16 +17,5 @@ module.exports = {
     "vue/no-v-html": "off",
     "vue/multi-word-component-names": "off",
   },
-  overrides: [
-    {
-      files: [
-        "**/__tests__/*.{j,t}s?(x)",
-        "**/tests/unit/**/*.spec.{j,t}s?(x)",
-      ],
-      env: {
-        jest: true,
-      },
-    },
-  ],
   ignorePatterns: ["public/"],
 };

+ 0 - 3
jest.config.js

@@ -1,3 +0,0 @@
-module.exports = {
-  preset: "@vue/cli-plugin-unit-jest",
-};

+ 0 - 4
package.json

@@ -34,17 +34,13 @@
     "@vue/cli-plugin-babel": "~5.0.0",
     "@vue/cli-plugin-eslint": "~5.0.0",
     "@vue/cli-plugin-router": "~5.0.0",
-    "@vue/cli-plugin-unit-jest": "~5.0.0",
     "@vue/cli-plugin-vuex": "~5.0.0",
     "@vue/cli-service": "~5.0.0",
-    "@vue/test-utils": "^1.1.3",
-    "@vue/vue2-jest": "^27.0.0-alpha.2",
     "babel-eslint": "^10.1.0",
     "eslint": "^7.32.0",
     "eslint-config-prettier": "^8.3.0",
     "eslint-plugin-prettier": "^4.0.0",
     "eslint-plugin-vue": "^8.0.3",
-    "jest": "^27.0.5",
     "lint-staged": "^10.5.3",
     "prettier": "^2.4.1",
     "sass": "^1.32.7",

+ 0 - 12
tests/unit/example.spec.js

@@ -1,12 +0,0 @@
-import { shallowMount } from "@vue/test-utils";
-import HelloWorld from "@/components/HelloWorld.vue";
-
-describe("HelloWorld.vue", () => {
-  it("renders props.msg when passed", () => {
-    const msg = "new message";
-    const wrapper = shallowMount(HelloWorld, {
-      propsData: { msg },
-    });
-    expect(wrapper.text()).toMatch(msg);
-  });
-});

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 20 - 641
yarn.lock


Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä