Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit c0f417a

Browse files
committed
test(refactor): Move helpers to a support folder
1 parent 8bcfa32 commit c0f417a

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99
- feat: Add method for reading alerts (#94)
1010
### Changed
1111
- chore(lint): Lint mocks folder
12+
- test(refactor): Move helpers to a support folder
1213
### Fixed
1314
- fix: Remove mocks-server-plugin tag from package.json (#93)
1415
### Removed

jest.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ module.exports = {
2525
},
2626

2727
// The glob patterns Jest uses to detect test files
28-
testMatch: [
29-
"<rootDir>/test/?(*.)+(spec|test).js?(x)",
30-
"<rootDir>/test/*/?(*.)+(spec|test).js?(x)",
31-
],
28+
testMatch: ["<rootDir>/test/*.spec.js"],
3229

3330
transform: {
3431
".js$": "babel-jest",

test/index.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
readAlert,
1010
updateSettings,
1111
wait,
12-
} from "./index";
12+
} from "./support/helpers";
1313

1414
describe("react-admin-client methods used through node", () => {
1515
describe("when reading about", () => {

test/index.js renamed to test/support/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
config,
99
alerts,
1010
alert,
11-
} from "../index";
11+
} from "../../index";
1212

1313
config({
1414
baseUrl: "http://localhost:3200",

0 commit comments

Comments
 (0)