backend-dynamic-feature-service: fix scanner test

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-10-22 20:41:39 +02:00
parent abcf1f4abf
commit c4bb085f7a
@@ -542,9 +542,11 @@ Please add '${mockDir.resolve(
expectedLogs: {
errors: [
{
message: `failed to load dynamic plugin manifest from '${mockDir.resolve(
'backstageRoot/dist-dynamic/test-backend-plugin/alpha',
)}'; caused by SyntaxError: Unexpected token 'i', "invalid js"... is not valid JSON`,
message: expect.stringContaining(
`failed to load dynamic plugin manifest from '${mockDir.resolve(
'backstageRoot/dist-dynamic/test-backend-plugin/alpha',
)}'; caused by SyntaxError: Unexpected token`,
),
meta: {
name: 'SyntaxError',
message: expect.stringContaining('Unexpected token'),