nofeat: implement diagnostic error messages in findConfig #12
Annotations
17 errors and 3 warnings
|
check (22)
Process completed with exit code 1.
|
|
test/config.test.ts > findConfig > prefers .mex/ over context/:
test/config.test.ts#L47
AssertionError: expected '/tmp/mex-config-AaBd2t' to be '/tmp/mex-config-AaBd2t/.mex' // Object.is equality
Expected: "/tmp/mex-config-AaBd2t/.mex"
Received: "/tmp/mex-config-AaBd2t"
❯ test/config.test.ts:47:33
|
|
test/config.test.ts > findConfig > works without .git if scaffold exists:
src/config.ts#L25
Error: No git repository found. Initialize one first: git init
❯ findConfig src/config.ts:25:13
❯ test/config.test.ts:29:20
|
|
test/config.test.ts > findConfig > throws when no scaffold found (with .git):
test/config.test.ts#L24
AssertionError: expected [Function] to throw error including 'No scaffold found' but got 'No .mex/ scaffold found. Run: git clo…'
Expected: "No scaffold found"
Received: "No .mex/ scaffold found. Run: git clone https://github.com/theDakshJaitly/mex.git .mex && bash .mex/setup.sh"
❯ test/config.test.ts:24:38
|
|
test/config.test.ts > findConfig > throws when no scaffold found (no .git):
test/config.test.ts#L19
AssertionError: expected [Function] to throw error including 'No scaffold found' but got 'No git repository found. Initialize o…'
Expected: "No scaffold found"
Received: "No git repository found. Initialize one first: git init"
❯ test/config.test.ts:19:38
|
|
check (20)
The strategy configuration was canceled because "check._22" failed
|
|
check (20)
Process completed with exit code 1.
|
|
test/config.test.ts > findConfig > prefers .mex/ over context/:
test/config.test.ts#L47
AssertionError: expected '/tmp/mex-config-BKxqnA' to be '/tmp/mex-config-BKxqnA/.mex' // Object.is equality
Expected: "/tmp/mex-config-BKxqnA/.mex"
Received: "/tmp/mex-config-BKxqnA"
❯ test/config.test.ts:47:33
|
|
test/config.test.ts > findConfig > works without .git if scaffold exists:
src/config.ts#L25
Error: No git repository found. Initialize one first: git init
❯ findConfig src/config.ts:25:13
❯ test/config.test.ts:29:20
|
|
test/config.test.ts > findConfig > throws when no scaffold found (with .git):
test/config.test.ts#L24
AssertionError: expected [Function] to throw error including 'No scaffold found' but got 'No .mex/ scaffold found. Run: git clo…'
Expected: "No scaffold found"
Received: "No .mex/ scaffold found. Run: git clone https://github.com/theDakshJaitly/mex.git .mex && bash .mex/setup.sh"
❯ test/config.test.ts:24:38
|
|
test/config.test.ts > findConfig > throws when no scaffold found (no .git):
test/config.test.ts#L19
AssertionError: expected [Function] to throw error including 'No scaffold found' but got 'No git repository found. Initialize o…'
Expected: "No scaffold found"
Received: "No git repository found. Initialize one first: git init"
❯ test/config.test.ts:19:38
|
|
check (18)
The strategy configuration was canceled because "check._22" failed
|
|
check (18)
The operation was canceled.
|
|
test/config.test.ts > findConfig > prefers .mex/ over context/:
test/config.test.ts#L47
AssertionError: expected '/tmp/mex-config-X1e9Jb' to be '/tmp/mex-config-X1e9Jb/.mex' // Object.is equality
Expected: "/tmp/mex-config-X1e9Jb/.mex"
Received: "/tmp/mex-config-X1e9Jb"
❯ test/config.test.ts:47:33
|
|
test/config.test.ts > findConfig > works without .git if scaffold exists:
src/config.ts#L25
Error: No git repository found. Initialize one first: git init
❯ findConfig src/config.ts:25:13
❯ test/config.test.ts:29:20
|
|
test/config.test.ts > findConfig > throws when no scaffold found (with .git):
test/config.test.ts#L24
AssertionError: expected [Function] to throw error including 'No scaffold found' but got 'No .mex/ scaffold found. Run: git clo…'
Expected: "No scaffold found"
Received: "No .mex/ scaffold found. Run: git clone https://github.com/theDakshJaitly/mex.git .mex && bash .mex/setup.sh"
❯ test/config.test.ts:24:38
|
|
test/config.test.ts > findConfig > throws when no scaffold found (no .git):
test/config.test.ts#L19
AssertionError: expected [Function] to throw error including 'No scaffold found' but got 'No git repository found. Initialize o…'
Expected: "No scaffold found"
Received: "No git repository found. Initialize one first: git init"
❯ test/config.test.ts:19:38
|
|
check (22)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
check (20)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
check (18)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|