Skip to content

Commit 1972adc

Browse files
committed
feat: pri test won't open url, console url text instead
1 parent 34d32d9 commit 1972adc

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pri",
3-
"version": "0.10.1",
3+
"version": "0.10.2",
44
"types": "src/node/index.ts",
55
"main": "built/node/index.js",
66
"scripts": {

src/built-in-plugins/command-test/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ export const CommandTest = async (instance: typeof pri) => {
3737
execSync(`${findNearestNodemodulesFile('.bin/rimraf')} ${path.join(instance.projectRootPath, '.nyc_output')}`);
3838

3939
// Open test html in brower
40-
open(path.join(instance.projectRootPath, 'coverage/lcov-report/index.html'));
40+
log(
41+
`Open this url to see code coverage: file:///${path.join(
42+
instance.projectRootPath,
43+
'coverage/lcov-report/index.html'
44+
)}`
45+
);
4146

4247
process.exit(0);
4348
};

0 commit comments

Comments
 (0)