Skip to content

Commit 90ba0bf

Browse files
committed
Support .'s in prerelease versions when testing
1 parent 7677f93 commit 90ba0bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration-test.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ async function setupServerPath() {
2020

2121
// If TEST_BUILT_TARBALL is set, test the latest built ready-to-go tarball:
2222
const tmpDir = tmp.dirSync({ unsafeCleanup: true }).name;
23-
const version = require(path.join('..', 'package.json')).version;
23+
const version: string = require(path.join('..', 'package.json')).version;
2424

25-
const channel = version.split('-')[1] || '';
25+
const channel = (version.split('-')[1] || '').split('.')[0];
2626

2727
const tarballPath = path.join(
2828
__dirname,

0 commit comments

Comments
 (0)