Skip to content

Commit 40abd8e

Browse files
aepflirenovate[bot]toddbaert
authored
chore: various gherkin improvements for e2e tests (#1008)
Signed-off-by: Simon Schrottner <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Todd Baert <[email protected]>
1 parent 9a4395b commit 40abd8e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1111
-1042
lines changed

.gitmodules

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
path = libs/providers/flagd-web/schemas
66
url = https://github.com/open-feature/schemas
77
[submodule "libs/providers/flagd/spec"]
8-
path = libs/providers/flagd/spec
9-
url = https://github.com/open-feature/spec.git
10-
[submodule "libs/providers/flagd-web/spec"]
11-
path = libs/providers/flagd-web/spec
12-
url = https://github.com/open-feature/spec.git
8+
path = libs/providers/flagd/spec
9+
url = https://github.com/open-feature/spec.git
1310
[submodule "libs/shared/flagd-core/flagd-schemas"]
1411
path = libs/shared/flagd-core/flagd-schemas
1512
url = https://github.com/open-feature/flagd-schemas.git
16-
[submodule "libs/providers/flagd/flagd-testbed"]
17-
path = libs/providers/flagd/flagd-testbed
18-
url = https://github.com/open-feature/flagd-testbed.git
13+
[submodule "libs/shared/flagd-core/test-harness"]
14+
path = libs/shared/flagd-core/test-harness
15+
url = https://github.com/open-feature/flagd-testbed
16+
[submodule "libs/shared/flagd-core/spec"]
17+
path = libs/shared/flagd-core/spec
18+
url = https://github.com/open-feature/spec

libs/providers/flagd-web/project.json

+1-13
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,6 @@
5858
}
5959
]
6060
},
61-
"pullTestHarness": {
62-
"executor": "nx:run-commands",
63-
"options": {
64-
"commands": [
65-
"git submodule update --init spec",
66-
"rm -f -r ./src/e2e/features/*",
67-
"cp -v ./spec/specification/assets/gherkin/evaluation.feature ./src/e2e/features/"
68-
],
69-
"cwd": "libs/providers/flagd-web",
70-
"parallel": false
71-
}
72-
},
7361
"e2e": {
7462
"executor": "nx:run-commands",
7563
"options": {
@@ -84,7 +72,7 @@
8472
"target": "generate"
8573
},
8674
{
87-
"target": "pullTestHarness"
75+
"target": "flagd-core:pullTestHarness"
8876
}
8977
]
9078
},

libs/providers/flagd-web/schemas

libs/providers/flagd-web/spec

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { getGherkinTestPath } from '@openfeature/flagd-core';
2+
13
export const FLAGD_NAME = 'flagd-web';
24

3-
export const IMAGE_VERSION = 'v0.5.6';
5+
export const GHERKIN_EVALUATION_FEATURE = getGherkinTestPath('flagd.feature');

libs/providers/flagd-web/src/e2e/features/.gitignore

-1
This file was deleted.

libs/providers/flagd-web/src/e2e/features/.gitkeep

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './constants';
2+
export * from './step-definitions';

libs/providers/flagd-web/src/e2e/jest.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export default {
44
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: './tsconfig.lib.json' }],
55
},
66
moduleNameMapper: {
7+
'@openfeature/flagd-core': ['<rootDir>/../../../../shared/flagd-core/src'],
78
'^(.*)\\.js$': ['$1.js', '$1.ts', '$1'],
89
},
910
testEnvironment: 'node',

0 commit comments

Comments
 (0)