fix windows pattern #4
Annotations
10 errors and 1 notice
yaml spec works:
test\plugin.v3.test.js#L250
[Error [ERR_TEST_FAILURE]: 'specification' parameter must contain a valid version 2.0 or 3.0.x or 3.1.x specification] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: Error: 'specification' parameter must contain a valid version 2.0 or 3.0.x or 3.1.x specification
at Parser.parse (file:///D:/a/fastify-openapi-glue/fastify-openapi-glue/lib/Parser.js:49:13)
at async plugin (file:///D:/a/fastify-openapi-glue/fastify-openapi-glue/index.js:122:18)
}
|
missing service definition throws error :
test\plugin.v3.test.js#L300
Error [ERR_TEST_FAILURE]: got expected error
at process.emit (node:events:519:28) {
code: 'ERR_TEST_FAILURE',
failureType: 'unhandledRejection',
cause: AssertionError [ERR_ASSERTION]: got expected error
at file:///D:/a/fastify-openapi-glue/fastify-openapi-glue/test/plugin.v3.test.js:305:14
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: "'specification' parameter must contain a valid version 2.0 or 3.0.x or 3.1.x specification",
expected: "'serviceHandlers' parameter must refer to an object",
operator: 'strictEqual'
}
}
|
yaml spec works:
test\plugin.v2.test.js#L154
[Error [ERR_TEST_FAILURE]: 'specification' parameter must contain a valid version 2.0 or 3.0.x or 3.1.x specification] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: Error: 'specification' parameter must contain a valid version 2.0 or 3.0.x or 3.1.x specification
at Parser.parse (file:///D:/a/fastify-openapi-glue/fastify-openapi-glue/lib/Parser.js:49:13)
at async plugin (file:///D:/a/fastify-openapi-glue/fastify-openapi-glue/index.js:122:18)
}
|
missing service definition throws error :
test\plugin.v2.test.js#L182
Error [ERR_TEST_FAILURE]: got expected error
at process.emit (node:events:519:28) {
code: 'ERR_TEST_FAILURE',
failureType: 'unhandledRejection',
cause: AssertionError [ERR_ASSERTION]: got expected error
at file:///D:/a/fastify-openapi-glue/fastify-openapi-glue/test/plugin.v2.test.js:187:14
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: "'specification' parameter must contain a valid version 2.0 or 3.0.x or 3.1.x specification",
expected: "'serviceHandlers' parameter must refer to an object",
operator: 'strictEqual'
}
}
|
invalid service definition throws error :
test\plugin.v2.test.js#L199
Error [ERR_TEST_FAILURE]: got expected error
at process.emit (node:events:519:28) {
code: 'ERR_TEST_FAILURE',
failureType: 'unhandledRejection',
cause: AssertionError [ERR_ASSERTION]: got expected error
at file:///D:/a/fastify-openapi-glue/fastify-openapi-glue/test/plugin.v2.test.js:204:14
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: "'specification' parameter must contain a valid version 2.0 or 3.0.x or 3.1.x specification",
expected: "'serviceHandlers' parameter must refer to an object",
operator: 'strictEqual'
}
}
|
build (20.x, windows-latest)
Process completed with exit code 1.
|
build (22.x, ubuntu-latest)
The job was canceled because "_20_x_windows-latest" failed.
|
build (20.x, ubuntu-latest)
The job was canceled because "_20_x_windows-latest" failed.
|
build (22.x, windows-latest)
The job was canceled because "_20_x_windows-latest" failed.
|
build (22.x, windows-latest)
The operation was canceled.
|
build (20.x, windows-latest)
Total Tests: 88
Suites 📂: 0
Passed ✅: 83
Failed ❌: 5
Canceled 🚫: 0
Skipped ⏭️: 0
Todo 📝: 0
Duration 🕐: 8202.808ms
|