Skip to content

Commit ab5bb6b

Browse files
committed
add job testing ts types against Jest
1 parent 0cc80f3 commit ab5bb6b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

circle.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,31 @@ jobs:
10321032
working_directory: test-binary
10331033
command: $(npm bin)/cypress info
10341034

1035+
test-types-cypress-and-jest:
1036+
<<: *defaults
1037+
steps:
1038+
- attach_workspace:
1039+
at: ~/
1040+
# make sure we have cypress.zip received
1041+
- run: ls -l
1042+
- run: ls -l cypress.zip cypress.tgz
1043+
- run: mkdir test-cypress-and-jest
1044+
- run: node --version
1045+
- run: npm --version
1046+
- run:
1047+
name: Create new NPM package
1048+
working_directory: test-cypress-and-jest
1049+
command: npm init -y
1050+
- run:
1051+
name: Test types clash
1052+
working_directory: test-cypress-and-jest
1053+
environment:
1054+
CYPRESS_INSTALL_BINARY: /root/cypress/cypress.zip
1055+
command: |
1056+
npm install /root/cypress/cypress.tgz typescript jest @types/jest
1057+
echo "console.log('hello world')" > hello.ts
1058+
npx tsc --noEmit
1059+
10351060
# install NPM + binary zip and run against staging API
10361061
"test-binary-against-staging":
10371062
<<: *defaults
@@ -1354,6 +1379,10 @@ linux-workflow: &linux-workflow
13541379
requires:
13551380
- build-binary
13561381
- build-npm-package
1382+
- test-types-cypress-and-jest:
1383+
requires:
1384+
- build-binary
1385+
- build-npm-package
13571386
- post-pre-release-install-comment:
13581387
context: test-runner:commit-status-checks
13591388
filters:

0 commit comments

Comments
 (0)