Skip to content

Commit

Permalink
fix: test (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb authored Jun 18, 2020
1 parent 23d5b6d commit 8829ee1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"build:prod:es5": "rollup -c scripts/prod.es5.js",
"build": "npm-run-all --serial build:prod:* && tsc",
"start": "npm-run-all --parallel storybook",
"test": "cross-env NODE_ENV='test' tsc && avaron lib/index.test.js --renderer",
"test": "cross-env NODE_ENV='test' tsc -p tsconfig.test.json && avaron lib/index.test.js --renderer",
"test:ci": "npm run flow && npm run build",
"prepublish": "npm run build",
"format": "prettier --write '**/*.{tsx,ts}'",
Expand Down
17 changes: 17 additions & 0 deletions tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"target": "ES5",
"lib": ["es5", "es2015", "dom"],
"jsx": "react",
"declaration": true,
"outDir": "./lib",
"strict": true,
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
"allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */,
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
},
"exclude": ["stories", "lib"],
"include": [
"src"
]
}

0 comments on commit 8829ee1

Please sign in to comment.