Skip to content

Commit 5f98853

Browse files
chore: fix the method call
1 parent d33dce8 commit 5f98853

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/snyk-test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const PACKAGE_LOCK_PATH = path.join(__dirname, '..', 'package-lock.json');
3030
* Because we always install with `npm ci --omit=optional`, with this method we
3131
* try to remove these identified problematic optionalDependencies before
3232
* running the Snyk tests and once the tests are finished, we restore the
33-
* original state back.
33+
* original state back using npm hooks.
3434
*/
3535
async function removeProblematicOptionalDepsFromPackageLock() {
3636
const packageLockContent = JSON.parse(
@@ -96,8 +96,7 @@ async function snykTest(cwd) {
9696
async function main() {
9797
const rootPath = path.resolve(__dirname, '..');
9898
await fs.mkdir(path.join(rootPath, `.sbom`), { recursive: true });
99-
revertPackageLockChanges =
100-
await removeProblematicOptionalDepsFromPackageLock();
99+
await removeProblematicOptionalDepsFromPackageLock();
101100
const results = await snykTest(rootPath);
102101

103102
await fs.writeFile(

0 commit comments

Comments
 (0)