Responded to comments in PR - editing changeset to be accurate, chang… #56
Annotations
10 errors and 1 warning
#displayData › should display in csv format:
packages/jspsych/tests/data/datamodule.test.ts#L133
expect(received).toMatch(expected)
Expected pattern: /<pre id="jspsych-data-display">"rt","stimulus","response","trial_type","trial_index","version","time_elapsed"\r\n"[\d]+","hello","a","html-keyboard-response","0","[\d.]+","[\d]+"\r\n<\/pre>/
Received string: "<pre id=\"jspsych-data-display\">\"rt\",\"stimulus\",\"response\",\"trial_type\",\"trial_index\",\"plugin_version\",\"time_elapsed\"·
\"0\",\"hello\",\"a\",\"html-keyboard-response\",\"0\",\"1.1.3\",\"1\"·
</pre>"
at Object.<anonymous> (tests/data/datamodule.test.ts:133:23)
|
data conversion to json › survey-text data response object is correctly converted:
packages/jspsych/tests/data/data-json-conversion.test.ts#L25
expect(received).toBe(expected) // Object.is equality
Expected: "[{\"response\":{\"Q0\":\"Response 1\",\"Q1\":\"Response 2\"},\"trial_index\":0}]"
Received: "[{\"response\":{\"Q0\":\"Response 1\",\"Q1\":\"Response 2\"},\"trial_index\":0,\"plugin_version\":\"1.1.3\"}]"
at Object.<anonymous> (tests/data/data-json-conversion.test.ts:25:7)
|
data conversion to json › same-different-html stimulus array is correctly converted:
packages/jspsych/tests/data/data-json-conversion.test.ts#L58
expect(received).toBe(expected) // Object.is equality
Expected: "[{\"answer\":\"different\",\"correct\":false,\"stimulus\":[\"<p>Climbing</p>\",\"<p>Walking</p>\"],\"response\":\"q\",\"trial_index\":0}]"
Received: "[{\"answer\":\"different\",\"correct\":false,\"stimulus\":[\"<p>Climbing</p>\",\"<p>Walking</p>\"],\"response\":\"q\",\"trial_index\":0,\"plugin_version\":\"1.1.3\"}]"
at Object.<anonymous> (tests/data/data-json-conversion.test.ts:58:7)
|
data conversion to json › survey-multi-select response array is correctly converted:
packages/jspsych/tests/data/data-json-conversion.test.ts#L96
expect(received).toBe(expected) // Object.is equality
Expected: "[{\"response\":{\"q\":[\"fuzz\",\"bizz\"]},\"trial_index\":0}]"
Received: "[{\"response\":{\"q\":[\"fuzz\",\"bizz\"]},\"trial_index\":0,\"plugin_version\":\"1.1.3\"}]"
at Object.<anonymous> (tests/data/data-json-conversion.test.ts:96:7)
|
data conversion to csv › survey-text data response object is correctly converted:
packages/jspsych/tests/data/data-csv-conversion.test.ts#L24
expect(received).toBe(expected) // Object.is equality
- Expected - 2
+ Received + 2
- "response","trial_index"
+ "response","trial_index","plugin_version"
- "{""Q0"":""Response 1"",""Q1"":""Response 2""}","0"
+ "{""Q0"":""Response 1"",""Q1"":""Response 2""}","0","1.1.3"
↵
at Object.<anonymous> (tests/data/data-csv-conversion.test.ts:24:7)
|
data conversion to csv › same-different-html stimulus array is correctly converted:
packages/jspsych/tests/data/data-csv-conversion.test.ts#L57
expect(received).toBe(expected) // Object.is equality
- Expected - 2
+ Received + 2
- "answer","correct","stimulus","response","trial_index"
+ "answer","correct","stimulus","response","trial_index","plugin_version"
- "different","false","[""<p>Climbing</p>"",""<p>Walking</p>""]","q","0"
+ "different","false","[""<p>Climbing</p>"",""<p>Walking</p>""]","q","0","1.1.3"
↵
at Object.<anonymous> (tests/data/data-csv-conversion.test.ts:57:7)
|
data conversion to csv › survey-multi-select response array is correctly converted:
packages/jspsych/tests/data/data-csv-conversion.test.ts#L87
expect(received).toBe(expected) // Object.is equality
- Expected - 2
+ Received + 2
- "response","trial_index"
+ "response","trial_index","plugin_version"
- "{""q"":[""fuzz"",""bizz""]}","0"
+ "{""q"":[""fuzz"",""bizz""]}","0","1.1.3"
↵
at Object.<anonymous> (tests/data/data-csv-conversion.test.ts:87:7)
|
Build, lint, and test on Node.js 20
Process completed with exit code 1.
|
Build, lint, and test on Node.js 18
The job was canceled because "_20" failed.
|
Build, lint, and test on Node.js 18
The operation was canceled.
|
Build, lint, and test on Node.js 20
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|