Skip to content

Commit 8875de5

Browse files
author
Josh Goldberg
authored
Added end-to-end tests back to CircleCI flow (#207)
* Added end-to-end tests back to CircleCI flow * Used npx instead of a Circle install * Make end-to-end depend on tsc step instead of ts-node * Added tsc note to Testing.md * ...with a trailing endline
1 parent fd9f274 commit 8875de5

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ jobs:
9191
- attach_workspace:
9292
at: "."
9393

94-
- run: npm i -g ts-node
9594
- run: npm run test:end-to-end
9695

9796
test-unit:
@@ -144,6 +143,10 @@ workflows:
144143
- prettier:
145144
requires:
146145
- build
146+
- test-end-to-end:
147+
requires:
148+
- build
149+
- tsc
147150
- test-unit:
148151
requires:
149152
- build

docs/Testing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ Within each directory, a test suite will execute `bin/tslint-to-eslint` and vali
4242

4343
Use `npm run test:end-to-end:accept` to overwrite the expected contents of files with what is actually written.
4444
These behave similarly to updating snapshots in snapshot testing.
45+
46+
> Note: these end-to-end tests use the compiled result of `npm run tsc`, so if you update source code, re-run `npm run tsc` before `npm run test:end-to-end`.

test/createTests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const createTests = (
3636

3737
const act = async (testArgs: string[]) => {
3838
try {
39-
return await exec(`ts-node ${binFile} ${testArgs.join(" ")}`, {
39+
return await exec(`node ${binFile} ${testArgs.join(" ")}`, {
4040
cwd,
4141
});
4242
} catch (error) {

0 commit comments

Comments
 (0)