|
1 | 1 | import path from 'node:path'
|
2 | 2 |
|
3 |
| -import semver from 'semver' |
4 | 3 | import { describe, expect, it } from 'vitest'
|
5 | 4 |
|
6 | 5 | import { LOG_SYMBOLS } from '@socketsecurity/registry/lib/logger'
|
@@ -63,16 +62,10 @@ describe('socket manifest cdxgen', async () => {
|
63 | 62 | .replace(/(?<=CycloneDX\s+Generator\s+)[\d.]+/, '<redacted>')
|
64 | 63 | .replace(/(?<=Node\.js,\s+Version:\s+)[\d.]+/, '<redacted>')
|
65 | 64 |
|
66 |
| - // Node 24 on Windows currently fails this test with assertion failure: |
67 |
| - // Assertion failed: !(handle->flags & UV_HANDLE_CLOSING), file src\win\async.c, line 76 |
68 |
| - const skipStdoutOnWin32Node24 = |
69 |
| - constants.WIN32 && semver.parse(constants.NODE_VERSION)!.major >= 24 |
70 |
| - if (!skipStdoutOnWin32Node24) { |
71 |
| - expect(redactedStdout).toMatchInlineSnapshot(` |
72 |
| - "CycloneDX Generator <redacted> |
73 |
| - Runtime: Node.js, Version: <redacted>" |
74 |
| - `) |
75 |
| - } |
| 65 | + expect(redactedStdout).toMatchInlineSnapshot(` |
| 66 | + "CycloneDX Generator <redacted> |
| 67 | + Runtime: Node.js, Version: <redacted>" |
| 68 | + `) |
76 | 69 | expect(`\n ${stderr}`).toMatchInlineSnapshot(`
|
77 | 70 | "
|
78 | 71 | _____ _ _ /---------------
|
|
0 commit comments