Skip to content

Commit

Permalink
Add typescript testing (#1165)
Browse files Browse the repository at this point in the history
* add ts baseline test

* fix typo

* Integrate ts testing into test script, add needed dependencies, run prettier on tests.ts

* remove broken tests (extracted to future PR)
  • Loading branch information
tkow authored and rosskevin committed Jan 11, 2019
1 parent a06a2c4 commit 3be868a
Show file tree
Hide file tree
Showing 5 changed files with 553 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .prettierrc
@@ -0,0 +1,8 @@
{
"bracketSpacing": true,
"jsxBracketSameLine": false,
"printWidth": 100,
"semi": false,
"singleQuote": true,
"trailingComma": "all"
}
5 changes: 5 additions & 0 deletions package.json
Expand Up @@ -37,6 +37,7 @@
"browserify-istanbul": "2.0.0",
"chai": "3.5.0",
"coveralls": "2.11.16",
"dtslint": "^0.4.2",
"eslint": "3.15.0",
"eslint-config-airbnb": "14.1.0",
"eslint-plugin-import": "2.2.0",
Expand Down Expand Up @@ -67,13 +68,17 @@
"rollup-plugin-node-resolve": "2.0.0",
"rollup-plugin-uglify": "1.0.1",
"sinon": "1.17.7",
"tslint": "^5.12.1",
"typescript": "^3.2.2",
"watchify": "3.9.0",
"yargs": "6.6.0"
},
"scripts": {
"pretest": "npm run test:typescript",
"test": "npm run test:new && npm run test:compat",
"test:new": "karma start karma.conf.js --singleRun",
"test:compat": "karma start karma.backward.conf.js --singleRun",
"test:typescript": "tslint --project tsconfig.json",
"tdd": "karma start karma.conf.js",
"tdd:compat": "karma start karma.backward.conf.js",
"clean": "rimraf dist && mkdirp dist",
Expand Down

0 comments on commit 3be868a

Please sign in to comment.