Skip to content

Commit 1711005

Browse files
committed
feat: removing build dependencies and using testcontainers for container spin up
Signed-off-by: Simon Schrottner <[email protected]>
1 parent 8b7f14b commit 1711005

30 files changed

+4282
-1219
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,6 @@ jobs:
4242
e2e:
4343
runs-on: ubuntu-latest
4444

45-
services:
46-
flagd:
47-
image: ghcr.io/open-feature/flagd-testbed:v0.5.6
48-
ports:
49-
- 8013:8013
50-
flagd-unstable:
51-
image: ghcr.io/open-feature/flagd-testbed-unstable:v0.5.6
52-
ports:
53-
- 8014:8013
54-
sync:
55-
image: ghcr.io/open-feature/sync-testbed:v0.5.6
56-
ports:
57-
- 9090:9090
58-
sync-unstable:
59-
image: ghcr.io/open-feature/sync-testbed-unstable:v0.5.6
60-
ports:
61-
- 9091:9090
62-
6345
steps:
6446
- uses: actions/checkout@v4
6547
with:
@@ -74,9 +56,5 @@ jobs:
7456
- name: Install
7557
run: npm ci
7658

77-
- uses: bufbuild/[email protected]
78-
with:
79-
github_token: ${{ github.token }}
80-
8159
- name: e2e
8260
run: npm run e2e

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@buf:registry=https://buf.build/gen/npm/v1/

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
export default {
33
displayName: 'providers-flagd-web',
44
preset: '../../../jest.preset.js',
5-
globals: {
6-
'ts-jest': {
7-
tsconfig: '<rootDir>/tsconfig.spec.json',
8-
},
9-
},
5+
moduleDirectories: ["node_modules", "src"],
106
transform: {
11-
'^.+\\.[tj]s$': 'ts-jest',
7+
'^.+\\.[tj]s$': ['ts-jest', {
8+
tsconfig: '<rootDir>/tsconfig.spec.json'
9+
}]
1210
},
11+
transformIgnorePatterns: [
12+
'node_modules/(?!@buf/.*)'
13+
],
1314
testEnvironment: 'jsdom',
1415
moduleFileExtensions: ['ts', 'js', 'html'],
1516
// ignore e2e path

0 commit comments

Comments
 (0)