Skip to content

Commit

Permalink
chore: try fix win test
Browse files Browse the repository at this point in the history
  • Loading branch information
betula committed Oct 19, 2020
1 parent 7ec40f6 commit 5560ebc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
],
"testMatch": [
"<rootDir>/test/**/*.test.js"
]
],
"moduleNameMapper": {
"realar": "<rootDir>"
}
}
2 changes: 1 addition & 1 deletion test/mock-test/mock.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mock } from "../..";
import { mock } from "realar";
import { notifier, api, user_form } from "./user-form";

test("User form should work", async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/mock-test/user-form.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { unit, shared } from "../..";
import { unit, shared } from "realar";

// Some real notifier service
export const notifier = unit({
Expand Down
2 changes: 1 addition & 1 deletion test/test.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { unit, shared, mock } from "..";
import { unit, shared, mock } from "realar";

const s = unit({
v: 1,
Expand Down
2 changes: 1 addition & 1 deletion test/unit.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { unit, pending, changed } from "..";
import { unit, pending, changed } from "realar";

const u = unit({
v:1,
Expand Down
2 changes: 1 addition & 1 deletion test/view.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from "react";
import { mount } from "enzyme";
import { unit, useOwn } from "..";
import { unit, useOwn } from "realar";

test("should work unit arguments pass", () => {
let constr = jest.fn();
Expand Down

0 comments on commit 5560ebc

Please sign in to comment.