Skip to content

Commit 3f7911a

Browse files
committed
tests: Add E2E test for preset option
1 parent 760f0d6 commit 3f7911a

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

.circleci/config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,25 @@ jobs:
2323
- run: npm run build
2424
- run: npm test
2525

26+
test-preset-node8:
27+
docker:
28+
- image: circleci/node:10-browsers
29+
working_directory: ~/repo
30+
steps:
31+
- checkout
32+
- run: npm install
33+
- run: npm run build
34+
- run: npm test:preset
35+
test-preset-node10:
36+
docker:
37+
- image: circleci/node:10-browsers
38+
working_directory: ~/repo
39+
steps:
40+
- checkout
41+
- run: npm install
42+
- run: npm run build
43+
- run: npm test:preset
44+
2645
publish-job:
2746
docker:
2847
- image: circleci/node:10
@@ -41,12 +60,17 @@ workflows:
4160
test:
4261
jobs:
4362
- test-job-8
63+
- test-preset-node8
4464
- test-job-10
65+
- test-preset-node10
66+
4567
- publish-job:
4668
filters:
4769
branches:
4870
only:
4971
- master
5072
requires:
5173
- test-job-8
74+
- test-preset-node8
5275
- test-job-10
76+
- test-preset-node10

packages/e2e/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"private": true,
66
"main": "index.js",
77
"scripts": {
8-
"pretest": "rimraf app",
9-
"test": "create-ts-lib app && cd app && npm run build && npm run test"
8+
"clean": "rimraf app",
9+
"test": "npm run clean && create-ts-lib app && cd app && npm run build && npm run test",
10+
"test:preset": "npm run clean && create-ts-lib --preset server app && cd app && npm run build && ls -l ./dist"
1011
},
1112
"dependencies": {
1213
"create-ts-lib": "^0.4.0",
@@ -16,6 +17,6 @@
1617
"author": "",
1718
"license": "ISC",
1819
"devDependencies": {
19-
"create-ts-lib": "0.4.0"
20+
"create-ts-lib": "^0.4.0"
2021
}
2122
}

0 commit comments

Comments
 (0)