Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Add unmock-jest-runner to answers #7

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"prettier": "^1.18.2",
"ts-jest": "^24.1.0",
"typescript": "^3.6.3",
"unmock": "^0.3.7",
"unmock-jest": "^0.3.7"
"unmock": "^0.3.14",
"unmock-jest": "^0.3.7",
"unmock-jest-runner": "0.0.0"
}
}
3 changes: 2 additions & 1 deletion test/1-hello-unmock/3-use-variable-input.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
// we are generating an `id` field, but where did our `isAdmin`
// field go? can you see how to generate it?

import unmock, { u, runner } from "unmock";
import unmock, { u } from "unmock";
import runner from "unmock-jest-runner";
import axios from "axios";

unmock
Expand Down
3 changes: 2 additions & 1 deletion test/1-hello-unmock/4-runner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
// Can you see why? Can you propose a sensible
// fix to the function without changing the API?

import unmock, { u, runner } from "unmock";
import unmock, { u } from "unmock";
import runner from "unmock-jest-runner";
import axios from "axios";

unmock
Expand Down
3 changes: 2 additions & 1 deletion test/3-initializing-mocks/7-setting-codes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
// we probably should have used withCodes to include only successful
// responses instead of withoutCodes. can you fix that?

import unmock, { u, runner, transform } from "unmock";
import unmock, { u, transform } from "unmock";
import runner from "unmock-jest-runner";
import axios from "axios";
import { IService } from "unmock-core/dist/service/interfaces";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
// but you will probably at least want to change the test
// to reflect what it actually does.

import unmock, { u, runner, transform } from "unmock";
import unmock, { u, transform } from "unmock";
import runner from "unmock-jest-runner";
import axios from "axios";
import { IService } from "unmock-core/dist/service/interfaces";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
// in this test, the title is correct, but the implementation of times
// uses the wrong number. can you change it to the right one?

import unmock, { u, runner, transform } from "unmock";
import unmock, { u, transform } from "unmock";
import runner from "unmock-jest-runner";
import axios from "axios";
import { IService } from "unmock-core/dist/service/interfaces";

Expand Down