Skip to content

Commit dbb2395

Browse files
committed
Chore: Move tests
1 parent cb2d539 commit dbb2395

8 files changed

Lines changed: 6 additions & 6 deletions

File tree

jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
globals: {
55
__DEV__: true,
66
},
7-
roots: ['src', 'test'],
7+
roots: ['src'],
88
testEnvironment: 'jsdom',
9-
setupFilesAfterEnv: ['./test/setup.ts'],
9+
setupFilesAfterEnv: ['./src/test/setup.ts'],
1010
};

test/common.tsx renamed to src/test/common.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import { ResponsiveProps, createResponsiveSystem, ScreenClassConfiguration } from '../src';
2+
import { ResponsiveProps, createResponsiveSystem, ScreenClassConfiguration } from '../..';
33
import { render } from '@testing-library/react';
44

55
const breakpoints = {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { merge } from '../src/merge';
1+
import { merge } from '../merge';
22

33
it('merges same-length arrays', () => {
44
const a = { array: [1, 2, 3] };
File renamed without changes.

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"include": ["src", "types", "test"],
2+
"include": ["src", "types", "src/test"],
33
"compilerOptions": {
44
"target": "es5",
55
"module": "esnext",
66
"lib": ["dom", "esnext"],
77
"importHelpers": true,
88
"declaration": true,
99
"sourceMap": true,
10-
"rootDir": "./",
10+
"rootDir": "./src",
1111
"strict": true,
1212
"noImplicitAny": true,
1313
"strictNullChecks": true,

0 commit comments

Comments
 (0)