Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- terencedignon-macbookpro2% yarn test
- yarn run v1.22.4
- $ jest
- PASS test/utils/npm/get-npm-bin-command.test.js
- PASS test/utils/command-exists.test.js
- PASS test/utils/npm/use-yarn.test.js
- PASS test/github/api.test.js
- ● Console
- console.log
- Creating GitHub check with 0 annotations for check-name…
- at log (src/utils/action.js:19:12)
- console.log
- check-name check created successfully
- at log (src/utils/action.js:19:12)
- PASS test/github/context.test.js
- /bin/sh: black: command not found
- /bin/sh: black: command not found
- /bin/sh: black: command not found
- error Command "eslint" not found.
- error Command "eslint" not found.
- error Command "eslint" not found.
- error Command "eslint" not found.
- error Command "eslint" not found.
- error Command "eslint" not found.
- /bin/sh: flake8: command not found
- /bin/sh: flake8: command not found
- /bin/sh: flake8: command not found
- /bin/sh: gofmt: command not found
- /bin/sh: gofmt: command not found
- /bin/sh: golint: command not found
- /bin/sh: golint: command not found
- /bin/sh: mypy: command not found
- /bin/sh: mypy: command not found
- error Command "prettier" not found.
- error Command "prettier" not found.
- error Command "prettier" not found.
- /bin/sh: rubocop: command not found
- /bin/sh: rubocop: command not found
- /bin/sh: rubocop: command not found
- error Command "stylelint" not found.
- error Command "stylelint" not found.
- error Command "stylelint" not found.
- error Command "xo" not found.
- error Command "xo" not found.
- error Command "xo" not found.
- /bin/sh: swiftformat: command not found
- /bin/sh: swiftformat: command not found
- /bin/sh: swiftlint: command not found
- /bin/sh: swiftlint: command not found
- FAIL test/linters/linters.test.js (10.729 s)
- ● Console
- console.warn
- Flake8 does not support auto-fixing
- 14 | break;
- 15 | case "warning":
- > 16 | console.warn(msg); // eslint-disable-line no-console
- | ^
- 17 | break;
- 18 | default:
- 19 | console.log(msg); // eslint-disable-line no-console
- at log (src/utils/action.js:16:12)
- at Function.lint (src/linters/flake8.js:48:4)
- at Object.<anonymous> (test/linters/linters.test.js:66:30)
- console.warn
- golint does not support auto-fixing
- 14 | break;
- 15 | case "warning":
- > 16 | console.warn(msg); // eslint-disable-line no-console
- | ^
- 17 | break;
- 18 | default:
- 19 | console.log(msg); // eslint-disable-line no-console
- at log (src/utils/action.js:16:12)
- at Function.lint (src/linters/golint.js:42:4)
- at Object.<anonymous> (test/linters/linters.test.js:66:30)
- console.warn
- Mypy does not support auto-fixing
- 14 | break;
- 15 | case "warning":
- > 16 | console.warn(msg); // eslint-disable-line no-console
- | ^
- 17 | break;
- 18 | default:
- 19 | console.log(msg); // eslint-disable-line no-console
- at log (src/utils/action.js:16:12)
- at Function.lint (src/linters/mypy.js:49:4)
- at Object.<anonymous> (test/linters/linters.test.js:66:30)
- ● black › lint › Black returns expected lint output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: Black is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● black › lint › Black returns expected lint output
- expect(received).toEqual(expected) // deep equality
- Expected: 1
- Received: 127
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● black › lint › Black parses lint output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: Black is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● black › auto-fix › Black returns expected auto-fix output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: Black is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● black › auto-fix › Black returns expected auto-fix output
- expect(received).toEqual(expected) // deep equality
- Expected: 0
- Received: 127
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● black › auto-fix › Black parses auto-fix output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: Black is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● eslint › lint › ESLint returns expected lint output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: ESLint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● eslint › lint › ESLint returns expected lint output
- expect(received).toEqual(expected) // deep equality
- Expected: StringContaining "{\"filePath\":\"/Users/terencedignon/lint-action/test/tmp/eslint/file1.js\",\"messages\":[{\"ruleId\":\"prefer-const\",\"severity\":2,\"message\":\"'str' is never reassigned. Use 'const' instead.\",\"line\":1,\"column\":5,\"nodeType\":\"Identifier\",\"messageId\":\"useConst\",\"endLine\":1,\"endColumn\":8,\"fix\":{\"range\":[0,3],\"text\":\"const\"}},{\"ruleId\":\"no-warning-comments\",\"severity\":1,\"message\":\"Unexpected 'todo' comment.\",\"line\":5,\"column\":31,\"nodeType\":\"Line\",\"endLine\":5,\"endColumn\":56}],\"errorCount\":1,\"warningCount\":1,\"fixableErrorCount\":1,\"fixableWarningCount\":0,\"source\":\"let str = 'world'; // \\\"prefer-const\\\" warning\\n\\nfunction main() {\\n\\t// \\\"no-warning-comments\\\" error\\n\\tconsole.log('hello ' + str); // TODO: Change something\\n}\\n\\nmain();\\n\"}"
- Received: ""
- 73 | if ("stdoutParts" in expected.cmdOutput) {
- 74 | expected.cmdOutput.stdoutParts.forEach((stdoutPart) =>
- > 75 | expect(stdout).toEqual(expect.stringContaining(stdoutPart)),
- | ^
- 76 | );
- 77 | } else if ("stdout" in expected.cmdOutput) {
- 78 | expect(stdout).toEqual(expected.cmdOutput.stdout);
- at forEach (test/linters/linters.test.js:75:22)
- at Array.forEach (<anonymous>)
- at Object.<anonymous> (test/linters/linters.test.js:74:37)
- ● eslint › lint › ESLint parses lint output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: ESLint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● eslint › auto-fix › ESLint returns expected auto-fix output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: ESLint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● eslint › auto-fix › ESLint returns expected auto-fix output
- expect(received).toEqual(expected) // deep equality
- Expected: StringContaining "{\"filePath\":\"/Users/terencedignon/lint-action/test/tmp/eslint/file1.js\",\"messages\":[{\"ruleId\":\"no-warning-comments\",\"severity\":1,\"message\":\"Unexpected 'todo' comment.\",\"line\":5,\"column\":31,\"nodeType\":\"Line\",\"endLine\":5,\"endColumn\":56}],\"errorCount\":0,\"warningCount\":1,\"fixableErrorCount\":0,\"fixableWarningCount\":0,\"output\":\"const str = 'world'; // \\\"prefer-const\\\" warning\\n\\nfunction main() {\\n\\t// \\\"no-warning-comments\\\" error\\n\\tconsole.log('hello ' + str); // TODO: Change something\\n}\\n\\nmain();\\n\"}"
- Received: ""
- 73 | if ("stdoutParts" in expected.cmdOutput) {
- 74 | expected.cmdOutput.stdoutParts.forEach((stdoutPart) =>
- > 75 | expect(stdout).toEqual(expect.stringContaining(stdoutPart)),
- | ^
- 76 | );
- 77 | } else if ("stdout" in expected.cmdOutput) {
- 78 | expect(stdout).toEqual(expected.cmdOutput.stdout);
- at forEach (test/linters/linters.test.js:75:22)
- at Array.forEach (<anonymous>)
- at Object.<anonymous> (test/linters/linters.test.js:74:37)
- ● eslint › auto-fix › ESLint parses auto-fix output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: ESLint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● eslint-typescript › lint › ESLint returns expected lint output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: ESLint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● eslint-typescript › lint › ESLint returns expected lint output
- expect(received).toEqual(expected) // deep equality
- Expected: StringContaining "{\"filePath\":\"/Users/terencedignon/lint-action/test/tmp/eslint-typescript/file1.ts\",\"messages\":[{\"ruleId\":\"prefer-const\",\"severity\":2,\"message\":\"'str' is never reassigned. Use 'const' instead.\",\"line\":1,\"column\":5,\"nodeType\":\"Identifier\",\"messageId\":\"useConst\",\"endLine\":1,\"endColumn\":8,\"fix\":{\"range\":[0,3],\"text\":\"const\"}},{\"ruleId\":\"no-warning-comments\",\"severity\":1,\"message\":\"Unexpected 'todo' comment.\",\"line\":5,\"column\":31,\"nodeType\":\"Line\",\"endLine\":5,\"endColumn\":56}],\"errorCount\":1,\"warningCount\":1,\"fixableErrorCount\":1,\"fixableWarningCount\":0,\"source\":\"let str = 'world'; // \\\"prefer-const\\\" warning\\n\\nfunction main(): void {\\n\\t// \\\"no-warning-comments\\\" error\\n\\tconsole.log('hello ' + str); // TODO: Change something\\n}\\n\\nmain();\\n\"}"
- Received: ""
- 73 | if ("stdoutParts" in expected.cmdOutput) {
- 74 | expected.cmdOutput.stdoutParts.forEach((stdoutPart) =>
- > 75 | expect(stdout).toEqual(expect.stringContaining(stdoutPart)),
- | ^
- 76 | );
- 77 | } else if ("stdout" in expected.cmdOutput) {
- 78 | expect(stdout).toEqual(expected.cmdOutput.stdout);
- at forEach (test/linters/linters.test.js:75:22)
- at Array.forEach (<anonymous>)
- at Object.<anonymous> (test/linters/linters.test.js:74:37)
- ● eslint-typescript › lint › ESLint parses lint output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: ESLint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● eslint-typescript › auto-fix › ESLint returns expected auto-fix output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: ESLint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● eslint-typescript › auto-fix › ESLint returns expected auto-fix output
- expect(received).toEqual(expected) // deep equality
- Expected: StringContaining "{\"filePath\":\"/Users/terencedignon/lint-action/test/tmp/eslint-typescript/file1.ts\",\"messages\":[{\"ruleId\":\"no-warning-comments\",\"severity\":1,\"message\":\"Unexpected 'todo' comment.\",\"line\":5,\"column\":31,\"nodeType\":\"Line\",\"endLine\":5,\"endColumn\":56}],\"errorCount\":0,\"warningCount\":1,\"fixableErrorCount\":0,\"fixableWarningCount\":0,\"output\":\"const str = 'world'; // \\\"prefer-const\\\" warning\\n\\nfunction main(): void {\\n\\t// \\\"no-warning-comments\\\" error\\n\\tconsole.log('hello ' + str); // TODO: Change something\\n}\\n\\nmain();\\n\"}"
- Received: ""
- 73 | if ("stdoutParts" in expected.cmdOutput) {
- 74 | expected.cmdOutput.stdoutParts.forEach((stdoutPart) =>
- > 75 | expect(stdout).toEqual(expect.stringContaining(stdoutPart)),
- | ^
- 76 | );
- 77 | } else if ("stdout" in expected.cmdOutput) {
- 78 | expect(stdout).toEqual(expected.cmdOutput.stdout);
- at forEach (test/linters/linters.test.js:75:22)
- at Array.forEach (<anonymous>)
- at Object.<anonymous> (test/linters/linters.test.js:74:37)
- ● eslint-typescript › auto-fix › ESLint parses auto-fix output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: ESLint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● flake8 › lint › Flake8 returns expected lint output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: Flake8 is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● flake8 › lint › Flake8 returns expected lint output
- expect(received).toEqual(expected) // deep equality
- Expected: 1
- Received: 127
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● flake8 › lint › Flake8 parses lint output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: Flake8 is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● flake8 › auto-fix › Flake8 returns expected auto-fix output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: Flake8 is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● flake8 › auto-fix › Flake8 returns expected auto-fix output
- expect(received).toEqual(expected) // deep equality
- Expected: 1
- Received: 127
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● flake8 › auto-fix › Flake8 parses auto-fix output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: Flake8 is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● gofmt › lint › gofmt returns expected lint output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: gofmt is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● gofmt › lint › gofmt returns expected lint output
- expect(received).toEqual(expected) // deep equality
- Expected: 0
- Received: 127
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● gofmt › lint › gofmt parses lint output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: gofmt is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● gofmt › auto-fix › gofmt returns expected auto-fix output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: gofmt is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● gofmt › auto-fix › gofmt returns expected auto-fix output
- expect(received).toEqual(expected) // deep equality
- Expected: 0
- Received: 127
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● gofmt › auto-fix › gofmt parses auto-fix output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: gofmt is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● golint › lint › golint returns expected lint output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: golint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● golint › lint › golint returns expected lint output
- expect(received).toEqual(expected) // deep equality
- Expected: 1
- Received: 127
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● golint › lint › golint parses lint output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: golint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● golint › auto-fix › golint returns expected auto-fix output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: golint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● golint › auto-fix › golint returns expected auto-fix output
- expect(received).toEqual(expected) // deep equality
- Expected: 1
- Received: 127
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● golint › auto-fix › golint parses auto-fix output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: golint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● mypy › lint › Mypy returns expected lint output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: Mypy is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● mypy › lint › Mypy returns expected lint output
- expect(received).toEqual(expected) // deep equality
- Expected: 1
- Received: 127
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● mypy › lint › Mypy parses lint output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: Mypy is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● mypy › auto-fix › Mypy returns expected auto-fix output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: Mypy is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● mypy › auto-fix › Mypy returns expected auto-fix output
- expect(received).toEqual(expected) // deep equality
- Expected: 1
- Received: 127
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● mypy › auto-fix › Mypy parses auto-fix output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: Mypy is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● prettier › lint › Prettier returns expected lint output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: Prettier is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● prettier › lint › Prettier returns expected lint output
- expect(received).toEqual(expected) // deep equality
- Expected: StringContaining "file1.js"
- Received: ""
- 73 | if ("stdoutParts" in expected.cmdOutput) {
- 74 | expected.cmdOutput.stdoutParts.forEach((stdoutPart) =>
- > 75 | expect(stdout).toEqual(expect.stringContaining(stdoutPart)),
- | ^
- 76 | );
- 77 | } else if ("stdout" in expected.cmdOutput) {
- 78 | expect(stdout).toEqual(expected.cmdOutput.stdout);
- at forEach (test/linters/linters.test.js:75:22)
- at Array.forEach (<anonymous>)
- at Object.<anonymous> (test/linters/linters.test.js:74:37)
- ● prettier › lint › Prettier parses lint output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: Prettier is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● prettier › auto-fix › Prettier returns expected auto-fix output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: Prettier is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● prettier › auto-fix › Prettier returns expected auto-fix output
- expect(received).toEqual(expected) // deep equality
- Expected: 0
- Received: 1
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● prettier › auto-fix › Prettier parses auto-fix output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: Prettier is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● rubocop › lint › RuboCop returns expected lint output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: RuboCop is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● rubocop › lint › RuboCop returns expected lint output
- expect(received).toEqual(expected) // deep equality
- Expected: 1
- Received: 127
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● rubocop › lint › RuboCop parses lint output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: RuboCop is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● rubocop › auto-fix › RuboCop returns expected auto-fix output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: RuboCop is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● rubocop › auto-fix › RuboCop returns expected auto-fix output
- expect(received).toEqual(expected) // deep equality
- Expected: 1
- Received: 127
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● rubocop › auto-fix › RuboCop parses auto-fix output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: RuboCop is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● stylelint › lint › stylelint returns expected lint output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: stylelint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● stylelint › lint › stylelint returns expected lint output
- expect(received).toEqual(expected) // deep equality
- Expected: 2
- Received: 1
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● stylelint › lint › stylelint parses lint output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: stylelint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● stylelint › auto-fix › stylelint returns expected auto-fix output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: stylelint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● stylelint › auto-fix › stylelint returns expected auto-fix output
- expect(received).toEqual(expected) // deep equality
- Expected: 2
- Received: 1
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● stylelint › auto-fix › stylelint parses auto-fix output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: stylelint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● xo › lint › XO returns expected lint output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: XO is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● xo › lint › XO returns expected lint output
- expect(received).toEqual(expected) // deep equality
- Expected: StringContaining "{\"filePath\":\"/Users/terencedignon/lint-action/test/tmp/xo/file1.js\",\"messages\":[{\"ruleId\":\"prefer-const\",\"severity\":2,\"message\":\"'str' is never reassigned. Use 'const' instead.\",\"line\":1,\"column\":5,\"nodeType\":\"Identifier\",\"messageId\":\"useConst\",\"endLine\":1,\"endColumn\":8,\"fix\":{\"range\":[0,3],\"text\":\"const\"}},{\"ruleId\":\"no-warning-comments\",\"severity\":1,\"message\":\"Unexpected 'todo' comment.\",\"line\":5,\"column\":31,\"nodeType\":\"Line\",\"endLine\":5,\"endColumn\":56}],\"errorCount\":1,\"warningCount\":1,\"fixableErrorCount\":1,\"fixableWarningCount\":0,\"source\":\"let str = 'world'; // \\\"prefer-const\\\" warning\\n\\nfunction main() {\\n\\t// \\\"no-warning-comments\\\" error\\n\\tconsole.log('hello ' + str); // TODO: Change something\\n}\\n\\nmain();\\n\"}"
- Received: ""
- 73 | if ("stdoutParts" in expected.cmdOutput) {
- 74 | expected.cmdOutput.stdoutParts.forEach((stdoutPart) =>
- > 75 | expect(stdout).toEqual(expect.stringContaining(stdoutPart)),
- | ^
- 76 | );
- 77 | } else if ("stdout" in expected.cmdOutput) {
- 78 | expect(stdout).toEqual(expected.cmdOutput.stdout);
- at forEach (test/linters/linters.test.js:75:22)
- at Array.forEach (<anonymous>)
- at Object.<anonymous> (test/linters/linters.test.js:74:37)
- ● xo › lint › XO parses lint output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: XO is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● xo › auto-fix › XO returns expected auto-fix output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: XO is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● xo › auto-fix › XO returns expected auto-fix output
- expect(received).toEqual(expected) // deep equality
- Expected: StringContaining "{\"filePath\":\"/Users/terencedignon/lint-action/test/tmp/xo/file1.js\",\"messages\":[{\"ruleId\":\"no-warning-comments\",\"severity\":1,\"message\":\"Unexpected 'todo' comment.\",\"line\":5,\"column\":31,\"nodeType\":\"Line\",\"endLine\":5,\"endColumn\":56}],\"errorCount\":0,\"warningCount\":1,\"fixableErrorCount\":0,\"fixableWarningCount\":0,\"output\":\"const str = 'world'; // \\\"prefer-const\\\" warning\\n\\nfunction main() {\\n\\t// \\\"no-warning-comments\\\" error\\n\\tconsole.log('hello ' + str); // TODO: Change something\\n}\\n\\nmain();\\n\"}"
- Received: ""
- 73 | if ("stdoutParts" in expected.cmdOutput) {
- 74 | expected.cmdOutput.stdoutParts.forEach((stdoutPart) =>
- > 75 | expect(stdout).toEqual(expect.stringContaining(stdoutPart)),
- | ^
- 76 | );
- 77 | } else if ("stdout" in expected.cmdOutput) {
- 78 | expect(stdout).toEqual(expected.cmdOutput.stdout);
- at forEach (test/linters/linters.test.js:75:22)
- at Array.forEach (<anonymous>)
- at Object.<anonymous> (test/linters/linters.test.js:74:37)
- ● xo › auto-fix › XO parses auto-fix output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: XO is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● swift-format-lockwood › lint › SwiftFormat returns expected lint output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: SwiftFormat is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● swift-format-lockwood › lint › SwiftFormat returns expected lint output
- expect(received).toEqual(expected) // deep equality
- Expected: 1
- Received: 127
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● swift-format-lockwood › lint › SwiftFormat parses lint output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: SwiftFormat is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● swift-format-lockwood › auto-fix › SwiftFormat returns expected auto-fix output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: SwiftFormat is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● swift-format-lockwood › auto-fix › SwiftFormat returns expected auto-fix output
- expect(received).toEqual(expected) // deep equality
- Expected: 0
- Received: 127
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● swift-format-lockwood › auto-fix › SwiftFormat parses auto-fix output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: SwiftFormat is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● swiftlint › lint › SwiftLint returns expected lint output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: SwiftLint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● swiftlint › lint › SwiftLint returns expected lint output
- expect(received).toEqual(expected) // deep equality
- Expected: 2
- Received: 127
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● swiftlint › lint › SwiftLint parses lint output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: SwiftLint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● swiftlint › auto-fix › SwiftLint returns expected auto-fix output
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: SwiftLint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- ● swiftlint › auto-fix › SwiftLint returns expected auto-fix output
- expect(received).toEqual(expected) // deep equality
- Expected: 0
- Received: 127
- 67 |
- 68 | // Exit code
- > 69 | expect(cmdOutput.status).toEqual(expected.cmdOutput.status);
- | ^
- 70 |
- 71 | // stdout
- 72 | const stdout = normalizeDates(cmdOutput.stdout);
- at Object.<anonymous> (test/linters/linters.test.js:69:30)
- ● swiftlint › auto-fix › SwiftLint parses auto-fix output correctly
- expect(received).resolves.toEqual()
- Received promise rejected instead of resolved
- Rejected to value: [Error: SwiftLint is not installed]
- 52 |
- 53 | beforeAll(async () => {
- > 54 | await expect(linter.verifySetup(projectTmpDir)).resolves.toEqual(undefined);
- | ^
- 55 | });
- 56 |
- 57 | // Test lint and auto-fix modes
- at expect (node_modules/expect/build/index.js:134:15)
- at Object.<anonymous> (test/linters/linters.test.js:54:10)
- Test Suites: 1 failed, 5 passed, 6 total
- Tests: 52 failed, 20 passed, 72 total
- Snapshots: 0 total
- Time: 14.753 s
- Ran all test suites.
- error Command failed with exit code 1.
- info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
- terencedignon-macbookpro2%
Add Comment
Please, Sign In to add comment