Skip to content

Commit

Permalink
[config-inferrer] Add tests for npm and pnpm Node.js variants
Browse files Browse the repository at this point in the history
  • Loading branch information
jankeromnes committed Jul 25, 2022
1 parent 4fa28da commit 0b4a8f8
Showing 1 changed file with 52 additions and 3 deletions.
55 changes: 52 additions & 3 deletions components/server/src/config/config-inferrer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ vscode:
});

describe("config inferrer", () => {
it("check node", async () =>
it("[node] yarn", async () =>
expect(
{
"yarn.lock": "",
Expand All @@ -65,8 +65,7 @@ describe("config inferrer", () => {
"build": "npx tsc",
"watch": "npx tsc -w"
}
}
`,
}`,
},
{
tasks: [
Expand All @@ -80,6 +79,56 @@ describe("config inferrer", () => {
},
},
)),
it("[node] npm", async () =>
expect(
{
"package.json": `
{
"scripts": {
"clean": "npx rimraf lib",
"build": "npx tsc",
"watch": "npx tsc -w"
}
}`,
},
{
tasks: [
{
init: "npm install && npm run build",
command: "npm run watch",
},
],
vscode: {
extensions: ["dbaeumer.vscode-eslint"],
},
},
)),
it("[node] pnpm", async () =>
expect(
{
"pnpm-lock.yaml": "",
"package.json": `
{
"packageManager": "[email protected]",
"scripts": {
"clean": "npx rimraf lib",
"build": "npx tsc",
"watch": "npx tsc -w"
}
}`,
},
{
tasks: [
{
init: "pnpm install && pnpm run build",
command: "pnpm run watch",
},
],
vscode: {
extensions: ["dbaeumer.vscode-eslint"],
},
},
)),
it("[java] mvn wrapper", async () =>
expect(
{
Expand Down

0 comments on commit 0b4a8f8

Please sign in to comment.