mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Removed deprecated NODE_PATH usage in tests
no refs Using NODE_PATH is deprecated in future versions of Create React App in favor of using jsconfig.json , this change removes files relying on NODE_PATH and uses relative path instead till we update usage to jsconfig in future as needed.
This commit is contained in:
parent
00f9481f11
commit
d7c645f71a
8 changed files with 7 additions and 8 deletions
|
@ -1 +0,0 @@
|
|||
NODE_PATH=src/utils
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import {render} from 'test-utils';
|
||||
import {render} from '../utils/test-utils';
|
||||
import TriggerButton from './TriggerButton';
|
||||
|
||||
const setup = (overrides) => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import {render, fireEvent} from 'test-utils';
|
||||
import {render, fireEvent} from '../../utils/test-utils';
|
||||
import AccountHomePage from './AccountHomePage';
|
||||
|
||||
const setup = (overrides) => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import {render, fireEvent} from 'test-utils';
|
||||
import {render, fireEvent} from '../../utils/test-utils';
|
||||
import AccountPlanPage from './AccountPlanPage';
|
||||
|
||||
const setup = (overrides) => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import {render, fireEvent} from 'test-utils';
|
||||
import {render, fireEvent} from '../../utils/test-utils';
|
||||
import AccountProfilePage from './AccountProfilePage';
|
||||
|
||||
const setup = (overrides) => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import {render, fireEvent} from 'test-utils';
|
||||
import {render, fireEvent} from '../../utils/test-utils';
|
||||
import MagicLinkPage from './MagicLinkPage';
|
||||
|
||||
const setup = (overrides) => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import {render, fireEvent} from 'test-utils';
|
||||
import {render, fireEvent} from '../../utils/test-utils';
|
||||
import SigninPage from './SigninPage';
|
||||
|
||||
const setup = (overrides) => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import SignupPage from './SignupPage';
|
||||
import {render, fireEvent} from 'test-utils';
|
||||
import {render, fireEvent} from '../../utils/test-utils';
|
||||
|
||||
const setup = (overrides) => {
|
||||
const {mockOnActionFn, ...utils} = render(
|
||||
|
|
Loading…
Add table
Reference in a new issue