Skip to content

Commit

Permalink
Merge pull request #1 from finos/fdc3-for-web-npm-rob
Browse files Browse the repository at this point in the history
Updating the setup for running cucumber tests
  • Loading branch information
Lecss authored Jul 30, 2024
2 parents ad40ead + cad07bb commit 0a7cf4c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10,566 deletions.
4 changes: 2 additions & 2 deletions fdc3-for-web-implementation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"version": "0.0.30",
"workspaces": [
"packages/fdc3-common",
"packages/testing",
"packages/addon",
"packages/da-proxy",
"packages/da-server",
"packages/client",
"packages/demo"

],
"scripts": {
"clean": "npm run clean --workspaces --if-present",
Expand All @@ -29,4 +29,4 @@
"publishConfig": {
"registry": "https://registry.npmjs.org"
}
}
}
9 changes: 5 additions & 4 deletions fdc3-for-web-implementation/packages/da-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@
"types": "dist/src/index.d.ts",
"scripts": {
"build": "tsc --module es2022",
"test": "tsc; nyc --reporter=lcov --reporter=text cucumber-js",
"test": "nyc --reporter=lcov --reporter=text cucumber-js",
"clean": "rimraf dist; rimraf cucumber-report.html; rimraf coverage; rimraf .nyc_output; rimraf node_modules"
},
"dependencies": {
"@finos/fdc3": "^2.1.0-beta.4",
"@kite9/fdc3-common": "0.0.31"
"@kite9/fdc3-common": "0.0.31",
"@kite9/testing": "0.0.30"
},
"devDependencies": {
"@cucumber/cucumber": "10.3.1",
"@cucumber/html-formatter": "11.0.4",
"@cucumber/pretty-formatter": "1.0.0-alpha.0",
"@cucumber/pretty-formatter": "1.0.1",
"@types/expect": "24.3.0",
"@types/lodash": "4.14.167",
"@types/node": "14.14.20",
Expand All @@ -41,4 +42,4 @@
"typescript": "^5.3.2",
"uuid": "^9.0.1"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Context } from '@finos/fdc3';
import { handleResolve, matchData } from '../support/matching';
import { CustomWorld } from '../world/index';
import { AgentRequestMessage, BroadcastAgentRequest, PrivateChannelBroadcastAgentRequest, PrivateChannelOnDisconnectAgentRequest, PrivateChannelOnUnsubscribeAgentRequest, RequestMessageType } from '@finos/fdc3/dist/bridging/BridgingTypes'
import { CHANNEL_STATE } from '@kite9/testing/dist/src/agent';
import { CHANNEL_STATE } from '@kite9/testing';

const contextMap: Record<string, any> = {
"fdc3.instrument": {
Expand Down
6 changes: 3 additions & 3 deletions fdc3-for-web-implementation/packages/da-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"clean": "rimraf dist; rimraf generated; rimraf node_modules; rimraf coverage; rimraf .nyc_output; rimraf cucumber-report.html",
"directory-openapi": "npx openapi-typescript ../../../src/app-directory/specification/appd.schema.json --output generated/directory-schema.ts",
"test": "run directory-openapi; tsc; nyc --reporter=lcov --reporter=text cucumber-js",
"test": "npm run directory-openapi; nyc --reporter=lcov --reporter=text cucumber-js",
"build": "npm run directory-openapi && tsc --module es2022"
},
"dependencies": {
Expand All @@ -21,7 +21,7 @@
"devDependencies": {
"@cucumber/cucumber": "10.3.1",
"@cucumber/html-formatter": "11.0.4",
"@cucumber/pretty-formatter": "1.0.0-alpha.0",
"@cucumber/pretty-formatter": "1.0.1",
"@types/expect": "24.3.0",
"@types/lodash": "4.14.167",
"@types/node": "14.14.20",
Expand All @@ -44,4 +44,4 @@
"typescript": "^5.3.2",
"uuid": "^9.0.1"
}
}
}
5 changes: 3 additions & 2 deletions fdc3-for-web-implementation/packages/testing/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { setupGenericSteps } from "./steps/generic.steps";
import { doesRowMatch, handleResolve, indexOf, matchData } from './support/matching'
import { PropsWorld } from "./world";
import { SimpleIntentResolver } from "./agent";
import { SimpleIntentResolver, CHANNEL_STATE } from "./agent";

export {
PropsWorld,
Expand All @@ -10,5 +10,6 @@ export {
indexOf,
matchData,
setupGenericSteps,
SimpleIntentResolver
SimpleIntentResolver,
CHANNEL_STATE
}
Loading

0 comments on commit 0a7cf4c

Please sign in to comment.