(projects: string[] = [DEFAULT_PROJECT])
| 89 | }; |
| 90 | |
| 91 | const createProjects = async (projects: string[] = [DEFAULT_PROJECT]) => { |
| 92 | for (const project of projects) { |
| 93 | await db.stores.projectStore.create({ |
| 94 | name: project, |
| 95 | description: '', |
| 96 | id: project, |
| 97 | mode: 'open' as const, |
| 98 | }); |
| 99 | await app.request |
| 100 | .post(`/api/admin/projects/${project}/environments`) |
| 101 | .send({ |
| 102 | environment: DEFAULT_ENV, |
| 103 | }) |
| 104 | .expect(200); |
| 105 | } |
| 106 | }; |
| 107 | |
| 108 | const createFeatureToggle = async ( |
| 109 | feature: CreateFeatureSchema, |
no test coverage detected