guybedford / chomp

'JS Make' - parallel task runner for the frontend ecosystem with a JS extension system.
https://chompbuild.com
Apache License 2.0
138 stars 7 forks source link

Windows failure in tests #147

Closed guybedford closed 1 year ago

guybedford commented 1 year ago

Somehow there seems to be a line separator in the targets list on windows?

Current CI failure -

node:internal/process/esm_loader:97
    internalBinding('errors').triggerUncaughtException(
                              ^

AssertionError [ERR_ASSERTION]: The input did not match the regular expression /fixtures\/src\/app.ts:fixtures\/src\/dep.ts:output\/lib\/app.js:output\/lib\/dep.js/. Input:

'fixtures/src/dep.ts:fixtures/src/app.ts:output/lib/app.js:output/lib/dep.js\r\n'

    at file:///D:/a/chomp/chomp/test/[cm]:24:9
    at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:[53](https://github.com/guybedford/chomp/actions/runs/3200276494/jobs/5226979935#step:7:54)3:24)
    at async loadESM (node:internal/process/esm_loader:91:5)
    at async handleMainPromise (node:internal/modules/run_main:65:12) {
  generatedMessage: true,
  code: 'ERR_ASSERTION',
  actual: 'fixtures/src/dep.ts:fixtures/src/app.ts:output/lib/app.js:output/lib/dep.js\r\n',
  expected: /fixtures\/src\/app.ts:fixtures\/src\/dep.ts:output\/lib\/app.js:output\/lib\/dep.js/,
  operator: 'match'