|
1 | 1 | /* eslint-disable unicorn/consistent-destructuring */ |
2 | | -import debugFactory from 'debug'; |
3 | | -import mergeWith from 'lodash.mergewith'; |
| 2 | + |
4 | 3 | import assert from 'node:assert'; |
5 | 4 | import fs from 'node:fs'; |
6 | 5 | import { EOL } from 'node:os'; |
7 | 6 | import path from 'node:path'; |
8 | 7 | import { types } from 'node:util'; |
9 | 8 | import { createContext, Script } from 'node:vm'; |
| 9 | + |
| 10 | +import debugFactory from 'debug'; |
| 11 | +import mergeWith from 'lodash.mergewith'; |
10 | 12 | import stripIndent from 'strip-indent'; |
11 | 13 |
|
12 | 14 | import { ErrorMessage } from './errors'; |
13 | | -import { prettierFormatter } from './formatters/prettier'; |
14 | | -import { unstringSnapshotSerializer } from './serializers/unstring-snapshot'; |
15 | 15 | import { $type } from './symbols'; |
16 | 16 |
|
17 | 17 | import type { |
@@ -1646,30 +1646,16 @@ function numericPrefixInRanges( |
1646 | 1646 | return false; |
1647 | 1647 | } |
1648 | 1648 |
|
| 1649 | +export { prettierFormatter } from './formatters/prettier'; |
| 1650 | +export { unstringSnapshotSerializer } from './serializers/unstring-snapshot'; |
| 1651 | + |
1649 | 1652 | export { |
1650 | | - pluginTester as default, |
1651 | 1653 | pluginTester, |
1652 | | - prettierFormatter, |
1653 | 1654 | restartTestTitleNumbering, |
1654 | 1655 | runPluginUnderTestHere, |
1655 | 1656 | runPresetUnderTestHere, |
1656 | | - unstringSnapshotSerializer, |
1657 | 1657 | validEndOfLineValues, |
1658 | 1658 | validTitleNumberingValues |
1659 | 1659 | }; |
1660 | 1660 |
|
1661 | 1661 | export * from './types'; |
1662 | | - |
1663 | | -// ? What follows is some not-so-pretty interop for backwards compatible require |
1664 | | -// ? calls using the old CJS default import syntax. In the next major version of |
1665 | | -// ? babel-plugin-tester, all default exports will be removed entirely. |
1666 | | -pluginTester.default = pluginTester; |
1667 | | -pluginTester.pluginTester = pluginTester; |
1668 | | -pluginTester.restartTestTitleNumbering = restartTestTitleNumbering; |
1669 | | -pluginTester.prettierFormatter = prettierFormatter; |
1670 | | -pluginTester.unstringSnapshotSerializer = unstringSnapshotSerializer; |
1671 | | -pluginTester.runPluginUnderTestHere = runPluginUnderTestHere; |
1672 | | -pluginTester.runPresetUnderTestHere = runPresetUnderTestHere; |
1673 | | -pluginTester.validTitleNumberingValues = validTitleNumberingValues; |
1674 | | -pluginTester.validEndOfLineValues = validEndOfLineValues; |
1675 | | -module.exports = pluginTester; |
0 commit comments