Skip to content

Commit

Permalink
test: update nodecli tests for added features
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Feb 21, 2024
1 parent 311813d commit 13475b5
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion tests/nodecli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,35 +25,60 @@ const devDependencies = [
"@semantic-release/changelog",
"@semantic-release/git",
"@types/config",
"@types/figlet",
"@types/inquirer",
"@types/node",
"@types/nodemon",
"all-contributors-cli",
"commitizen",
"cross-env",
"cz-conventional-changelog",
"doctoc",
"eslint",
"eslint-config-prettier",
"husky",
"lint-staged",
"nodemon",
"prettier",
"semantic-release",
"vitest",
];

const dependencies = ["config", "dotenv", "envalid"];
const dependencies = [
"chalk",
"commander",
"config",
"dotenv",
"envalid",
"execa",
"figlet",
"find-up",
"inquirer",
"listr2",
"mergician",
"string-builder",
];

const files = [
".github/workflows/main.yml",
".github/dependabot.yml",
".husky/commit-msg",
".husky/pre-commit",
".vscode/extensions.json",
".vscode/launch.json",
".vscode/settings.json",
"src/commands/hello.js",
"src/commands/index.js",
"src/utils/getPackageJson.js",
"src/utils/index.js",
"src/app.js",
"tests/app.test.js",
".all-contributorsrc",
".changelogrc.json",
".commitlintrc.json",
".czrc",
".editorconfig",
".eslintrc.json",
".gitattributes",
".gitignore",
".lintstagedrc.json",
Expand All @@ -69,6 +94,7 @@ const files = [
"LICENSE",
"package.json",
"README.md",
"vitest.config.js",
];

describe("generator-norgate-av:nodecli", () => {
Expand Down Expand Up @@ -161,6 +187,9 @@ describe("generator-norgate-av:nodecli", () => {
name: id,
displayName: name,
description,
bin: {
[id]: "src/app.js",
},
engines: {
node: `>=${engine}`,
},
Expand Down Expand Up @@ -349,6 +378,9 @@ describe("generator-norgate-av:nodecli", () => {
name: id,
displayName: destination,
description,
bin: {
[id]: "src/app.js",
},
engines: {
node: `>=${engine}`,
},
Expand Down Expand Up @@ -511,6 +543,9 @@ describe("generator-norgate-av:nodecli", () => {
name: result.generator.options.id,
displayName: destination,
description: result.generator.options.description,
bin: {
[result.generator.options.id!]: "src/app.js",
},
engines: {
node: `>=${engine}`,
},
Expand Down

0 comments on commit 13475b5

Please sign in to comment.