(path)
| 19 | const failOnWarn = (warning) => |
| 20 | expect.unreachable(`No warnings were expected, got:\n${warning.code}\n${warning.message}`); |
| 21 | const getLastPathFragment = (path) => path && path.split(/[\\/]/).slice(-1)[0]; |
| 22 | test('exposes plugin version', () => { |
| 23 | const plugin = nodeResolve(); |
| 24 | expect(plugin.version).toMatch(/^\d+\.\d+\.\d+/); |