Skip to content

Commit 009866d

Browse files
committed
Fix prepublish TTY test handling and bump version to 1.1.8
1 parent 51093ed commit 009866d

3 files changed

Lines changed: 12 additions & 10 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-node-api",
3-
"version": "1.1.7",
3+
"version": "1.1.8",
44
"description": "CLI tool to scaffold Node.js + Express APIs instantly",
55
"type": "commonjs",
66
"main": "bin/cli.js",

test/run-tests.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,15 @@ async function testCreateAppRejectsExistingDirectoryAfterPromptResolution() {
167167
const existingProjectPath = path.join(tempRoot, "existing-app");
168168
fs.mkdirSync(existingProjectPath, { recursive: true });
169169

170-
await assert.rejects(
171-
createApp("existing-app", {
172-
install: false,
173-
typescript: false,
174-
}),
175-
/Target folder already exists|Operation cancelled|Folder already exists/
176-
);
170+
await withInteractiveState(false, false, async () => {
171+
await assert.rejects(
172+
createApp("existing-app", {
173+
install: false,
174+
typescript: false,
175+
}),
176+
/Target folder already exists|Operation cancelled|Folder already exists/
177+
);
178+
});
177179
});
178180
}
179181

0 commit comments

Comments
 (0)