Permalink
Browse files

moved test script to root

  • Loading branch information...
justinwilaby committed May 22, 2018
1 parent 20e161f commit 9d03a464366e85ed45bbcec1638b6d9b8cbdd05c
Showing with 59 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +19 −1 package.json
  3. +1 −2 packages/app/client/package.json
  4. 0 {packages/app/client → }/testSetup.js
  5. +38 −0 tsconfig.json
@@ -6,3 +6,4 @@ Thumbs.db
.idea
generated
custom-botframework-webchat/dist
coverage
@@ -1,5 +1,23 @@
{
"scripts": {
"bootstrap": "lerna bootstrap"
"bootstrap": "lerna bootstrap --hoist",
"test:coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls"
},
"jest": {
"setupTestFrameworkScriptFile": "./testSetup.js",
"transform": {
"^.+\\.(tsx?|jsx?)$": "ts-jest"
},
"testMatch": [
"<rootDir>/packages/**/src/**/?(*.)(spec|test).(ts)?(x)"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
}
}
@@ -17,8 +17,7 @@
"prepare": "npm run clean && npm run build",
"start": "run-s copy:external build:vendors:dev build:shared:dev webpackdevServer:dev",
"webpackdevServer:dev": "webpack-dev-server --mode development --hot --inline --progress --colors --content-base ./public",
"test": "jest",
"test:coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls"
"test": "jest"
},
"jest": {
"setupTestFrameworkScriptFile": "./testSetup.js",
File renamed without changes.
@@ -0,0 +1,38 @@
{
"compilerOptions": {
"baseUrl": ".",
"outDir": "build/dist",
"module": "esnext",
"target": "es6",
"lib": ["es6", "dom", "es2015", "esnext"],
"sourceMap": true,
"allowJs": true,
"jsx": "react",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"moduleResolution": "node",
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"noImplicitThis": false,
"noImplicitAny": false,
// "strictNullChecks": true,
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": false,
// Should disable this when RxJS 6 release, and it should play nice with TS >= 2.4.1
"skipLibCheck": true
},
"include": [
"packages/**/src"
],
"exclude": [
"packages/**/src/**/*.test.tsx",
"packages/**/src/**/*.spec.tsx",
"packages/**/src/**/*.test.ts",
"packages/**/src/**/*.spec.ts",
"packages/**/build",
"packages/**/built",
"packages/**/scripts",
"**/node_modules",
"packages/**/public"
]
}

0 comments on commit 9d03a46

Please sign in to comment.