(active: boolean)
| 13 | }); |
| 14 | |
| 15 | function consumer(active: boolean): string { |
| 16 | return `import { useStore as current } from './store'; |
| 17 | export function run() { |
| 18 | const { reset } = ${active ? 'current.getState()' : 'external()'}; |
| 19 | reset(); |
| 20 | reset(); |
| 21 | } |
| 22 | export function effects(client: any) { |
| 23 | client.user.create(); |
| 24 | client?.user?.create(); |
| 25 | } |
| 26 | `; |
| 27 | } |
| 28 | |
| 29 | async function project(active: boolean) { |
| 30 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-store-cache-')); |
no outgoing calls
no test coverage detected