()
| 1397 | } |
| 1398 | |
| 1399 | const canLoadConfig = async () => { |
| 1400 | const result = await loadConfigFromFile( |
| 1401 | { command: 'build', mode: 'production' }, |
| 1402 | undefined, |
| 1403 | root, |
| 1404 | ) |
| 1405 | expect(result).toBeTruthy() |
| 1406 | expect(result?.config).toStrictEqual({ define: { foo: 1 } }) |
| 1407 | expect(path.normalize(result!.path)).toBe( |
| 1408 | path.resolve(root, writtenConfig!), |
| 1409 | ) |
| 1410 | } |
| 1411 | |
| 1412 | const cases = [ |
| 1413 | { |
no test coverage detected