Add Unit tests & code coverage reporting #29
Annotations
10 errors
SportlinkToMailchimpConverter > convertFileToPreview > should return expected object:
dist/sportlink-to-mailchimp-converter.test.js#L51
Error: expect(received).toMatchObject(expected)
- Expected - 1
+ Received + 1
@@ -6,11 +6,11 @@
"Tags",
],
"rows": Array [
Object {
"Email Address": "[email protected]",
- "First Name": "John",
+ "First Name": "Jane",
"Last Name": "Doe",
"Tags": Array [
"Vrienden van Groene Ster",
"Lopers",
],
at /home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/dist/sportlink-to-mailchimp-converter.test.js:90:55
at step (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/dist/sportlink-to-mailchimp-converter.test.js:33:23)
at Object.next (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/dist/sportlink-to-mailchimp-converter.test.js:14:53)
at fulfilled (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/dist/sportlink-to-mailchimp-converter.test.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
|
SportlinkToMailchimpConverter > convertFileToOutput > should reject invalid file:
dist/sportlink-to-mailchimp-converter.test.js#L97
Error: expect(received).rejects.toEqual()
Received promise resolved instead of rejected
Resolved to value: {"data": "", "mimetype": "text/csv;charset=utf-8;"}
at expect (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/expect/build/index.js:113:15)
at /home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/dist/sportlink-to-mailchimp-converter.test.js:104:67
at step (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/dist/sportlink-to-mailchimp-converter.test.js:33:23)
at Object.next (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/dist/sportlink-to-mailchimp-converter.test.js:14:53)
at /home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/dist/sportlink-to-mailchimp-converter.test.js:8:71
at new Promise (<anonymous>)
at Object.<anonymous>.__awaiter (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/dist/sportlink-to-mailchimp-converter.test.js:4:12)
at Object.<anonymous> (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/dist/sportlink-to-mailchimp-converter.test.js:97:63)
at Promise.then.completed (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-runner/build/testWorker.js:106:12)
|
SportlinkToMailchimpConverter > convertFileToOutput > should return expected object:
dist/sportlink-to-mailchimp-converter.test.js#L112
Error: expect(received).toMatchObject(expected)
- Expected - 1
+ Received + 1
Object {
"data": "Email Address,First Name,Last Name,Tags
- [email protected],John,Doe,\"Vrienden van Groene Ster,Lopers\"
+ [email protected],Jane,Doe,\"Vrienden van Groene Ster,Lopers\"
[email protected],Alice,Henderson,Overigen
[email protected],Peter,von Zillertal,Overigen
[email protected],Patricia,von Zillertal,\"Recreanten,Atletiek Masters Vrouwen\"",
"mimetype": "text/csv;charset=utf-8;",
}
at /home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/dist/sportlink-to-mailchimp-converter.test.js:128:55
at step (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/dist/sportlink-to-mailchimp-converter.test.js:33:23)
at Object.next (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/dist/sportlink-to-mailchimp-converter.test.js:14:53)
at fulfilled (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/dist/sportlink-to-mailchimp-converter.test.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
|
SportlinkToMailchimpConverter > convertFileToPreview > should return expected object:
src/sportlink-to-mailchimp-converter.test.ts#L23
Error: expect(received).toMatchObject(expected)
- Expected - 1
+ Received + 1
@@ -6,11 +6,11 @@
"Tags",
],
"rows": Array [
Object {
"Email Address": "[email protected]",
- "First Name": "John",
+ "First Name": "Jane",
"Last Name": "Doe",
"Tags": Array [
"Vrienden van Groene Ster",
"Lopers",
],
at /home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/src/sportlink-to-mailchimp-converter.test.ts:58:22
at step (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/src/sportlink-to-mailchimp-converter.test.ts:33:23)
at Object.next (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/src/sportlink-to-mailchimp-converter.test.ts:14:53)
at fulfilled (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/src/sportlink-to-mailchimp-converter.test.ts:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
|
SportlinkToMailchimpConverter > convertFileToOutput > should reject invalid file:
src/sportlink-to-mailchimp-converter.test.ts#L65
Error: expect(received).rejects.toEqual()
Received promise resolved instead of rejected
Resolved to value: {"data": "", "mimetype": "text/csv;charset=utf-8;"}
at expect (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/expect/build/index.js:113:15)
at /home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/src/sportlink-to-mailchimp-converter.test.ts:70:19
at step (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/src/sportlink-to-mailchimp-converter.test.ts:33:23)
at Object.next (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/src/sportlink-to-mailchimp-converter.test.ts:14:53)
at /home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/src/sportlink-to-mailchimp-converter.test.ts:8:71
at new Promise (<anonymous>)
at Object.<anonymous>.__awaiter (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/src/sportlink-to-mailchimp-converter.test.ts:4:12)
at Object.<anonymous> (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/src/sportlink-to-mailchimp-converter.test.ts:65:38)
at Promise.then.completed (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/node_modules/jest-runner/build/testWorker.js:106:12)
|
SportlinkToMailchimpConverter > convertFileToOutput > should return expected object:
src/sportlink-to-mailchimp-converter.test.ts#L73
Error: expect(received).toMatchObject(expected)
- Expected - 1
+ Received + 1
Object {
"data": "Email Address,First Name,Last Name,Tags
- [email protected],John,Doe,\"Vrienden van Groene Ster,Lopers\"
+ [email protected],Jane,Doe,\"Vrienden van Groene Ster,Lopers\"
[email protected],Alice,Henderson,Overigen
[email protected],Peter,von Zillertal,Overigen
[email protected],Patricia,von Zillertal,\"Recreanten,Atletiek Masters Vrouwen\"",
"mimetype": "text/csv;charset=utf-8;",
}
at /home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/src/sportlink-to-mailchimp-converter.test.ts:89:22
at step (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/src/sportlink-to-mailchimp-converter.test.ts:33:23)
at Object.next (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/src/sportlink-to-mailchimp-converter.test.ts:14:53)
at fulfilled (/home/runner/work/sportlink-to-mailchimp-converter/sportlink-to-mailchimp-converter/src/sportlink-to-mailchimp-converter.test.ts:5:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
|
validate
Error: The process '/usr/local/bin/npx' failed with exit code 1
Error: The process '/usr/local/bin/npx' failed with exit code 1
at rh._setResult (/home/runner/work/_actions/ArtiomTr/jest-coverage-report-action/v2/dist/index.js:21:17898)
at rh.CheckComplete (/home/runner/work/_actions/ArtiomTr/jest-coverage-report-action/v2/dist/index.js:21:17485)
at ChildProcess.<anonymous> (/home/runner/work/_actions/ArtiomTr/jest-coverage-report-action/v2/dist/index.js:21:16477)
at ChildProcess.emit (node:events:517:28)
at maybeClose (node:internal/child_process:1098:16)
at ChildProcess._handle.onexit (node:internal/child_process:303:5)
|
validate
Error: The process '/usr/local/bin/npx' failed with exit code 1
Error: The process '/usr/local/bin/npx' failed with exit code 1
at rh._setResult (/home/runner/work/_actions/ArtiomTr/jest-coverage-report-action/v2/dist/index.js:21:17898)
at rh.CheckComplete (/home/runner/work/_actions/ArtiomTr/jest-coverage-report-action/v2/dist/index.js:21:17485)
at ChildProcess.<anonymous> (/home/runner/work/_actions/ArtiomTr/jest-coverage-report-action/v2/dist/index.js:21:16477)
at ChildProcess.emit (node:events:517:28)
at maybeClose (node:internal/child_process:1098:16)
at ChildProcess._handle.onexit (node:internal/child_process:303:5)
|
validate
Jest coverage report action failed
|
validate
Process completed with exit code 1.
|