Skip to content

Commit

Permalink
ci: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Jul 26, 2021
1 parent 5181bee commit 0f42643
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 22 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ jobs:
run: yarn build:ci

- name: Run smoketests
# Debug
if: ${{ matrix.os }} == "macos-latest"
run: yarn test:smoketests

- name: Run tests and generate coverage
Expand Down
40 changes: 20 additions & 20 deletions smoketests/missing-packages/prettier.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

const { runTestStdout, runTestStdoutWithInput } = require("../helpers");
const { runTestStdout } = require("../helpers");
// eslint-disable-next-line node/no-unpublished-require
const rimraf = require("rimraf");
const { resolve } = require("path");
Expand All @@ -15,24 +15,24 @@ const prettierTest = async () => {
return status;
};

const prettierTestWithNoAnswer = async () => {
const packageName = "prettier";
const rootPath = resolve(__dirname, "./test-assets");
const cliArgs = ["init", rootPath, "--force"];
const inputs = {
"Do you like to install prettier to format generated configuration?": "n\n",
};
const logMessage =
"Generated configuration may not be properly formatted as prettier is not installed";
const status = await runTestStdoutWithInput({
packageName,
cliArgs,
inputs,
logMessage,
});
rimraf.sync(rootPath);
return status;
};
// const prettierTestWithNoAnswer = async () => {
// const packageName = "prettier";
// const rootPath = resolve(__dirname, "./test-assets");
// const cliArgs = ["init", rootPath, "--force"];
// const inputs = {
// "Do you like to install prettier to format generated configuration?": "n\n",
// };
// const logMessage =
// "Generated configuration may not be properly formatted as prettier is not installed";
// const status = await runTestStdoutWithInput({
// packageName,
// cliArgs,
// inputs,
// logMessage,
// });
// rimraf.sync(rootPath);
// return status;
// };

module.exports.run = [prettierTest, prettierTestWithNoAnswer];
module.exports.run = [prettierTest];
module.exports.name = "Missing prettier";

0 comments on commit 0f42643

Please sign in to comment.