Преглед на файлове

Move tests, re-enable tests in pipeline

Kirk Trombley преди 3 години
родител
ревизия
d98debda64
променени са 3 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 1 1
      .drone.yml
  2. 3 3
      client/src/components/util/__tests__/ApiInfo.test.js
  3. 0 0
      client/src/components/util/__tests__/__snapshots__/ApiInfo.test.js.snap

+ 1 - 1
.drone.yml

@@ -12,7 +12,7 @@ steps:
   - cd client
   - yarn install
   - yarn validate
-  # - yarn test:ci
+  - yarn test:ci
   - yarn build
   - mv build/* /build/
   when:

+ 3 - 3
client/src/tests/ApiInfo.test.js → client/src/components/util/__tests__/ApiInfo.test.js

@@ -1,9 +1,9 @@
 import React from "react";
 import { render, waitFor } from "@testing-library/react";
-import ApiInfo from "../components/util/ApiInfo";
-import { getStatus } from "../domain/apiMethods";
+import ApiInfo from "../ApiInfo";
+import { getStatus } from "../../../domain/apiMethods";
 
-jest.mock("../domain/apiMethods");
+jest.mock("../../../domain/apiMethods");
 
 describe("ApiInfo", () => {
   it("renders and matches snapshot", () => {

+ 0 - 0
client/src/tests/__snapshots__/ApiInfo.test.js.snap → client/src/components/util/__tests__/__snapshots__/ApiInfo.test.js.snap