Skip to content

Commit

Permalink
Adds tests for typescript
Browse files Browse the repository at this point in the history
Also updates ci infrastructure to run typecheck tests on travis
  • Loading branch information
dbrudner committed Mar 31, 2020
1 parent d5f0619 commit 0499b4a
Show file tree
Hide file tree
Showing 20 changed files with 4,450 additions and 5,462 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
name: ESLint
script: make lint

- stage: Typecheck
name: Check type definitions
script: make test-types

- stage: Unit Test
name: Coverage
addons:
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ karma = $(bin)/karma start
server = $(bin)/webpack-dev-server --inline --hot --port 8020
webpack = $(bin)/webpack
tsc = $(bin)/tsc
dts = $(bin)/dtslint
src = index.js $(shell find . -type f -name '*.js' ! -path './build/*' -o -name '*.css' ! -path './build/*')
tests = $(shell find test -type f -name '*.js')

Expand Down Expand Up @@ -53,7 +54,8 @@ test-e2e-debug: build $(src) $(tests)
DEBUG=1 $(wdio) wdio.conf.js
test-e2e-ci: build $(src) $(tests)
@$(wdio) wdio.ci.conf.js

test-types: types
$(dts) test/types
lint: build
@$(eslint)
lint-fix: build
Expand All @@ -66,5 +68,5 @@ clean:
@rm -rf node_modules build

.PHONY: server server-http
.PHONY: test-ci test-unit test-unit-ci test-unit-cov-ci test-e2e test-e2e-ci
.PHONY: test-ci test-unit test-unit-ci test-unit-cov-ci test-e2e test-e2e-ci test-types
.PHONY: lint lint-fix clean
Loading

0 comments on commit 0499b4a

Please sign in to comment.