From 45710b218f4384423220b918b34f730189d14bb5 Mon Sep 17 00:00:00 2001 From: Alex Nordlund Date: Fri, 27 Sep 2024 14:29:35 +0200 Subject: [PATCH] Use test from issue --- .../node/npm/task/NpmInstall_integTest.groovy | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/test/groovy/com/github/gradle/node/npm/task/NpmInstall_integTest.groovy b/src/test/groovy/com/github/gradle/node/npm/task/NpmInstall_integTest.groovy index 277a6d96..11ff9233 100644 --- a/src/test/groovy/com/github/gradle/node/npm/task/NpmInstall_integTest.groovy +++ b/src/test/groovy/com/github/gradle/node/npm/task/NpmInstall_integTest.groovy @@ -148,6 +148,19 @@ class NpmInstall_integTest extends AbstractIntegTest { then: result.task(':deleteNodeModules').outcome == TaskOutcome.SUCCESS + when: + result = build('npmInstall') + + then: + result.task(":npmInstall").outcome == TaskOutcome.SUCCESS + + when: + // when the node_modules is removed + result = build('deleteNodeModules') + + then: + result.task(':deleteNodeModules').outcome == TaskOutcome.SUCCESS + when: result = build('taskWithDependency')