-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[config-inferrer] Add tests for npm and pnpm Node.js variants
- Loading branch information
1 parent
4fa28da
commit 0b4a8f8
Showing
1 changed file
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ vscode: | |
}); | ||
|
||
describe("config inferrer", () => { | ||
it("check node", async () => | ||
it("[node] yarn", async () => | ||
expect( | ||
{ | ||
"yarn.lock": "", | ||
|
@@ -65,8 +65,7 @@ describe("config inferrer", () => { | |
"build": "npx tsc", | ||
"watch": "npx tsc -w" | ||
} | ||
} | ||
`, | ||
}`, | ||
}, | ||
{ | ||
tasks: [ | ||
|
@@ -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( | ||
{ | ||
|