e70ff47db3
Migrates test files in config-loader, events-node and kubernetes-react packages from MSW 1.x to MSW 2.x API to fix compatibility issues with Jest 30 and JSDOM v26. Changes: - Updated msw dependency from ^1.0.0 to ^2.0.0 - Changed imports from `rest` to `http` and `HttpResponse` - Converted handler syntax from `res(ctx.*)` to `HttpResponse.*` - Changed `toStrictEqual` to `toEqual` for response assertions Affected packages: - @backstage/config-loader - @backstage/plugin-events-node - @backstage/plugin-kubernetes-react Signed-off-by: Johan Persson <johanopersson@gmail.com>
72 lines
1.8 KiB
JSON
72 lines
1.8 KiB
JSON
{
|
|
"name": "@backstage/plugin-events-node",
|
|
"version": "0.4.18-next.1",
|
|
"description": "The plugin-events-node module for @backstage/plugin-events-backend",
|
|
"backstage": {
|
|
"role": "node-library",
|
|
"pluginId": "events",
|
|
"pluginPackages": [
|
|
"@backstage/plugin-events-backend",
|
|
"@backstage/plugin-events-backend-test-utils",
|
|
"@backstage/plugin-events-node"
|
|
]
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"homepage": "https://backstage.io",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/backstage/backstage",
|
|
"directory": "plugins/events-node"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./alpha": "./src/alpha.ts",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"main": "src/index.ts",
|
|
"types": "src/index.ts",
|
|
"typesVersions": {
|
|
"*": {
|
|
"alpha": [
|
|
"src/alpha.ts"
|
|
],
|
|
"package.json": [
|
|
"package.json"
|
|
]
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"config.d.ts"
|
|
],
|
|
"scripts": {
|
|
"build": "backstage-cli package build",
|
|
"clean": "backstage-cli package clean",
|
|
"lint": "backstage-cli package lint",
|
|
"prepack": "backstage-cli package prepack",
|
|
"postpack": "backstage-cli package postpack",
|
|
"start": "backstage-cli package start",
|
|
"test": "backstage-cli package test"
|
|
},
|
|
"dependencies": {
|
|
"@backstage/backend-plugin-api": "workspace:^",
|
|
"@backstage/errors": "workspace:^",
|
|
"@backstage/types": "workspace:^",
|
|
"@types/content-type": "^1.1.8",
|
|
"@types/express": "^4.17.6",
|
|
"content-type": "^1.0.5",
|
|
"cross-fetch": "^4.0.0",
|
|
"express": "^4.22.0",
|
|
"uri-template": "^2.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@backstage/backend-test-utils": "workspace:^",
|
|
"@backstage/cli": "workspace:^",
|
|
"msw": "^2.0.0"
|
|
},
|
|
"configSchema": "config.d.ts"
|
|
}
|