(directory)
| 7 | import { checkCachingHeaders } from '../helpers/caching-headers.js' |
| 8 | |
| 9 | function getNextStaticAsset(directory) { |
| 10 | const root = path.join('.next', 'static', directory) |
| 11 | const files = fs.readdirSync(root) |
| 12 | if (!files.length) throw new Error(`Can't find any files in ${root}`) |
| 13 | return path.join(root, files[0]) |
| 14 | } |
| 15 | |
| 16 | describe('static assets', () => { |
| 17 | jest.setTimeout(60 * 1000) |