|
1 | | -import type { SuiteWorkspaceConfig, TestSuite } from "skillgym"; |
2 | | -import { assert } from "skillgym"; |
| 1 | +import type { SuiteWorkspaceConfig, TestSuite } from 'skillgym'; |
| 2 | +import { assert } from 'skillgym'; |
3 | 3 |
|
4 | 4 | export const workspace: SuiteWorkspaceConfig = { |
5 | | - mode: "isolated", |
6 | | - templateDir: "../template/skillgym-app", |
| 5 | + mode: 'isolated', |
| 6 | + templateDir: '../template/skillgym-app', |
7 | 7 | bootstrap: { |
8 | | - command: "yarn", |
9 | | - args: ["install"], |
| 8 | + command: 'yarn', |
| 9 | + args: ['install'], |
10 | 10 | timeoutMs: 120_000, |
11 | 11 | }, |
12 | 12 | }; |
13 | 13 |
|
14 | 14 | const brownfieldNavigationSuite = [ |
15 | | - { |
16 | | - id: "navigation-setup", |
| 15 | + { |
| 16 | + id: 'navigation-setup', |
17 | 17 | prompt: |
18 | | - "Setup brownfield navigation with navigate to profile method. DO NOT read/scan files under packages/** and apps/** OR node_modules/**.", |
| 18 | + 'Setup brownfield navigation with navigate to profile method. DO NOT read/scan files under packages/** and apps/** OR node_modules/**.', |
19 | 19 | assert(report) { |
20 | | - assert.fileReads.includes(report, /brownfield-navigation\/references\/setup-codegen\.md$/); |
| 20 | + assert.fileReads.includes( |
| 21 | + report, |
| 22 | + /brownfield-navigation\/references\/setup-codegen\.md$/ |
| 23 | + ); |
21 | 24 | assert.commands.includes(report, /npx brownfield navigation:codegen/i); |
22 | 25 | assert.output.includes(report, /navigateToProfile/i); |
23 | 26 | }, |
24 | 27 | }, |
25 | 28 | { |
26 | | - id: "navigation-native-wiring", |
27 | | - prompt: "How do I use the generated brownfield navigation on the native android app to complete the wiring?", |
| 29 | + id: 'navigation-native-wiring', |
| 30 | + prompt: |
| 31 | + 'How do I use the generated brownfield navigation on the native android app to complete the wiring?', |
28 | 32 | assert(report) { |
29 | | - assert.fileReads.includes(report, /brownfield-navigation\/references\/native-integration\.md$/); |
| 33 | + assert.fileReads.includes( |
| 34 | + report, |
| 35 | + /brownfield-navigation\/references\/native-integration\.md$/ |
| 36 | + ); |
30 | 37 | assert.output.includes(report, /BrownfieldNavigationDelegate/i); |
31 | 38 | assert.output.includes( |
32 | 39 | report, |
|
0 commit comments