Download next.js/test/production/app-dir/barrel-optimization/basic/index.test.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 623 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/production/app-dir/barrel-optimization/basic/index.test.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/production/app-dir/barrel-optimization/basic/index.test.ts
-
curl -L -o index.test.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/production/app-dir/barrel-optimization/basic/index.test.ts
623 Bytes
| import { nextTestSetup } from 'e2e-utils' | |
| describe('Skipped in Turbopack', () => { | |
| describe('app-dir - optimizePackageImports - basic', () => { | |
| const { next } = nextTestSetup({ | |
| files: __dirname, | |
| }) | |
| it('should build successfully', async () => { | |
| const $ = await next.render$('/') | |
| expect(await $('#client-mod').text()).toContain('client:default') | |
| }) | |
| it('should handle mixed imports from barrel optimized lib correctly', async () => { | |
| const $ = await next.render$('/mixed-barrel-imports') | |
| expect(await $('#component').attr('style')).toContain('color:blue') | |
| }) | |
| }) | |
| }) | |