and I run it with lerna run test-watch under the root of the project.
I can see it run, but when I change something in the newly created node file,
no test run, nothing happens.
β n8n git:(feature/#8047-gllue-node-auth) β lerna run test-watch
info cli using local version of lerna
lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 1 package: "npm run test-watch"
Information on your n8n setup
n8n version: 0.149.0
Database youβre using (default: SQLite): Postgres
Running n8n with the execution process [own(default), main]: default
Running n8n via [Docker, npm, n8n.cloud, desktop app]: npm
β nodes-base git:(feature/#8047-gllue-node-auth) β pwd
/Users/top20/Offices/n8n/packages/nodes-base
β nodes-base git:(feature/#8047-gllue-node-auth) β npm run test-watch
FAIL test/nodes/Gllue/helpers.test.ts
Private Token Generator
β should get current date string (2 ms)
β should connect the data with comma (1 ms)
β should pad string with 16 length with 15
β should pad string with 16 length with 16
β should pad string with 32 length with 17 (1 ms)
β should pad string with 48 length with 33 (2 ms)
β should pad string with 48 length
β should pad string with enough space (1 ms)
β should generate token with AES KEY (1 ms)
β Private Token Generator βΊ should pad string with 48 length with 33
expect(received).toEqual(expected) // deep equality
Expected: 48
Received: 33120
38 | it('should pad string with 48 length with 33', () => {
39 | const realData = helpers.get16TimesLength(33111);
> 40 | expect(realData).toEqual(3 * SCALE_SIZE);
| ^
41 | })
42 | it('should pad string with 48 length', () => {
43 | const realData = helpers.padWithSpaceIn16Times(TIMESTAMP_EMAIL_CONNECTED);
at Object.<anonymous> (test/nodes/Gllue/helpers.test.ts:40:20)
Test Suites: 1 failed, 1 total
Tests: 1 failed, 8 passed, 9 total
Snapshots: 0 total
Time: 1.341 s
Ran all test suites related to changed files.
Watch Usage
βΊ Press a to run all tests.
βΊ Press f to run only failed tests.
βΊ Press p to filter by a filename regex pattern.
βΊ Press t to filter by a test name regex pattern.
βΊ Press q to quit watch mode.
βΊ Press Enter to trigger a test run.