Skip to content

Commit

Permalink
✅ [Debug] Verify npm version
Browse files Browse the repository at this point in the history
  • Loading branch information
sounisi5011 committed Mar 12, 2023
1 parent 0747c73 commit c9ddd9d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function tmpDir(dirname: string): string {
return path.resolve(__dirname, 'tmp', dirname);
}

test.before(async () => {
test.before.skip(async () => {
await execFileAsync('npm', ['run', 'build'], { cwd: PROJECT_ROOT });
await Promise.all([
rmrf(path.resolve(FIXTURES_DIR, 'package-lock.json')),
Expand All @@ -41,6 +41,15 @@ test.before(async () => {
});
});

test.only('check npm version', async (t) => {
const { exec } = await initGit(tmpDir('npm-ver'));

t.like(await exec(['npm', '--version']), {
stdout: '7.24.2',
stderr: '',
});
});

test('CLI should add Git tag', async (t) => {
const { exec } = await initGit(tmpDir('not-exists-git-tag'));

Expand Down

0 comments on commit c9ddd9d

Please sign in to comment.