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

Commit c85a9ea

Browse files
committed
[chore] resolve typecheck & test conflicts
2 parents 29724e0 + 3bc53c4 commit c85a9ea

File tree

14 files changed

+20
-79
lines changed

14 files changed

+20
-79
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ node_js:
33
- "8"
44
script:
55
- npm run lint:ci
6-
- npm run flow -- check
76
- npm run test:ci
87
- npm run build
8+
- npm run typecheck
99
after_success:
1010
- npm run test:coverage

husky.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ module.exports = {
55
'post-checkout': `if [[ $HUSKY_GIT_PARAMS =~ 1$ ]]; then ${runYarnLock}; fi`,
66
'post-merge': runYarnLock,
77
'post-rebase': 'yarn install',
8-
'pre-commit': 'yarn flow check && yarn lint-staged'
8+
'pre-commit': 'yarn typecheck && yarn lint-staged'
99
}
1010
};

jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
testMatch: ['**/__tests__/**/*.test.js']
3+
};

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@
2929
"typings": "index.d.ts",
3030
"sideEffects": false,
3131
"scripts": {
32-
"build": "npm run clean && npm-run-all --parallel build:*",
32+
"build": "npm run clean && run-p build:*",
3333
"build:development": "NODE_ENV=development rollup -c",
3434
"build:production": "NODE_ENV=production rollup -c",
3535
"clean": "rimraf dist",
3636
"flow": "flow",
37+
"flow:ci": "flow check",
3738
"lint": "yarn lint:cmd --fix",
3839
"lint:ci": "yarn lint:cmd",
3940
"lint:cmd": "eslint . --ext '.js,.json,.snap' --cache",
@@ -42,7 +43,9 @@
4243
"prepublishOnly": "npm run build",
4344
"test": "jest",
4445
"test:ci": "jest --ci",
45-
"test:coverage": "npm run test -- --coverage && cat ./coverage/lcov.info | coveralls"
46+
"test:coverage": "npm run test -- --coverage && cat ./coverage/lcov.info | coveralls",
47+
"tsc:ci": "tsc --noEmit typescript-tests/*",
48+
"typecheck": "run-p flow:ci tsc:ci"
4649
},
4750
"author": "Paul Armstrong",
4851
"contributors": [
@@ -76,8 +79,7 @@
7679
"rollup-plugin-babel": "^4.0.1",
7780
"rollup-plugin-filesize": "^6.1.0",
7881
"rollup-plugin-terser": "^5.0.0",
79-
"typescript": "^3.4.5",
80-
"typescript-definition-tester": "^0.0.6"
82+
"typescript": "^3.4.5"
8183
},
8284
"dependencies": {}
8385
}

src/__tests__/typescript.test.js

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { denormalize, normalize, schema } from '../../../index';
1+
import { denormalize, normalize, schema } from '../index'
22

33
const data = [{ id: '123', name: 'Jim' }, { id: '456', name: 'Jane' }];
44
const userSchema = new schema.Entity('users');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { denormalize, normalize, schema } from '../../../index';
1+
import { denormalize, normalize, schema } from '../index'
22

33
const data = [{ id: 1, type: 'admin' }, { id: 2, type: 'user' }];
44
const userSchema = new schema.Entity('users');
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { denormalize, normalize, schema } from '../../../index';
1+
import { denormalize, normalize, schema } from '../index'
22

33
type User = {
44
id_str: string;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { normalize, schema } from '../../../index';
1+
import { normalize, schema } from '../index'
22

33
const user = new schema.Entity('users');
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { normalize, schema } from '../../../index';
1+
import { normalize, schema } from '../index'
22

33
const data = {
44
/* ...*/

0 commit comments

Comments
 (0)