Browse Source

Move tests, re-enable tests in pipeline

Kirk Trombley 3 years ago
parent
commit
d98debda64

+ 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