react-code-dataset / next.js /packages /next-codemod /transforms /__tests__ /withamp-to-config.test.js
Download next.js/packages/next-codemod/transforms/__tests__/withamp-to-config.test.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 505 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next-codemod/transforms/__tests__/withamp-to-config.test.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next-codemod/transforms/__tests__/withamp-to-config.test.js
-
curl -L -o withamp-to-config.test.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next-codemod/transforms/__tests__/withamp-to-config.test.js
505 Bytes
| /* global jest */ | |
| jest.autoMockOff() | |
| const defineTest = require('jscodeshift/dist/testUtils').defineTest | |
| const fixtures = [ | |
| 'remove-import', | |
| 'remove-import-renamed', | |
| 'remove-import-single', | |
| 'full-amp', | |
| 'full-amp-inline', | |
| 'full-amp-with-config', | |
| 'full-amp-with-config-dupe', | |
| 'full-amp-with-config-var', | |
| 'hybrid-amp', | |
| 'hybrid-amp-with-config', | |
| ] | |
| for (const fixture of fixtures) { | |
| defineTest( | |
| __dirname, | |
| 'withamp-to-config', | |
| null, | |
| `withamp-to-config/${fixture}` | |
| ) | |
| } | |