Skip to content

Commit 75950e9

Browse files
committed
idk
1 parent 819c737 commit 75950e9

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"test": "npm run lint && npm run test:integration && npm run coverage",
1515
"test:nolint": "npm run test:integration && npm run coverage",
1616
"test:unit": "node --test 'test/unit/**/*-test.js'",
17-
"test:integration": "node --test 'test/integration/**/*-test.js'",
18-
"coverage": "node --test --experimental-test-coverage 'test/unit/**/*-test.js' 'test/integration/**/*-test.js'",
17+
"test:integration": "node --test test/integration/cli-test.js",
18+
"coverage": "node --test --experimental-test-coverage 'test/unit/**/*-test.js' test/integration/cli-test.js",
1919
"lint": "eslint . --fix",
2020
"rc": "npm version prerelease --preid RC"
2121
},

test/integration/cli-test.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,44 +26,48 @@ describe('CLI Integration Tests', () => {
2626
})
2727

2828
it('should build the basic templated node runtime project', async () => {
29+
let update = updater('Create')
2930
await create({
3031
folder: tmp,
3132
install: false,
3233
runtime: 'node.js',
33-
update: updater('Create'),
34+
update,
3435
})
3536
assert.ok(existsSync(join(tmp, 'src', 'http', 'get-index', 'index.mjs')), 'src/http/get-index/index.mjs created')
3637
assert.ok(readFileSync(join(tmp, 'app.arc'), 'utf-8').match(/runtime node/), '"runtime node" present somewhere in manifest')
3738
})
3839

3940
it('should build the basic templated deno runtime project', async () => {
41+
let update = updater('Create')
4042
await create({
4143
folder: tmp,
4244
install: false,
4345
runtime: 'deno',
44-
update: updater('Create'),
46+
update,
4547
})
4648
assert.ok(existsSync(join(tmp, 'src', 'http', 'get-index', 'mod.ts')), 'src/http/get-index/mod.ts created')
4749
assert.ok(readFileSync(join(tmp, 'app.arc'), 'utf-8').match(/runtime deno/), '"runtime deno" present somewhere in manifest')
4850
})
4951

5052
it('should build the basic templated python runtime project', async () => {
53+
let update = updater('Create')
5154
await create({
5255
folder: tmp,
5356
install: false,
5457
runtime: 'python',
55-
update: updater('Create'),
58+
update,
5659
})
5760
assert.ok(existsSync(join(tmp, 'src', 'http', 'get-index', 'lambda.py')), 'src/http/get-index/lambda.py created')
5861
assert.ok(readFileSync(join(tmp, 'app.arc'), 'utf-8').match(/runtime python/), '"runtime python" present somewhere in manifest')
5962
})
6063

6164
it('should build the basic templated ruby runtime project', async () => {
65+
let update = updater('Create')
6266
await create({
6367
folder: tmp,
6468
install: false,
6569
runtime: 'ruby',
66-
update: updater('Create'),
70+
update,
6771
})
6872
assert.ok(existsSync(join(tmp, 'src', 'http', 'get-index', 'lambda.rb')), 'src/http/get-index/lambda.rb created')
6973
assert.ok(readFileSync(join(tmp, 'app.arc'), 'utf-8').match(/runtime ruby/), '"runtime ruby" present somewhere in manifest')

0 commit comments

Comments
 (0)