Skip to content

Commit e92ac93

Browse files
authored
Fixes the info test (scripts are no longer in the npm package) (#4192)
1 parent f47b420 commit e92ac93

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

__tests__/commands/info.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@ const expectedKeys = [
4141
'repository',
4242
'bugs',
4343
'license',
44-
'scripts',
4544
'dist',
4645
'directories',
4746
];
4847

49-
// yarn now ships as built, single JS files so it has no dependencies
50-
const unexpectedKeys = ['dependencies', 'devDependencies'];
48+
// yarn now ships as built, single JS files so it has no dependencies and no scripts
49+
const unexpectedKeys = ['dependencies', 'devDependencies', 'scripts'];
5150

5251
test.concurrent('without arguments and in directory containing a valid package file', (): Promise<void> => {
5352
return runInfo([], {}, 'local', (config, output): ?Promise<void> => {

0 commit comments

Comments
 (0)