We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6dabc3 commit f9bda13Copy full SHA for f9bda13
test/plugin.test.ts
@@ -10,6 +10,7 @@ import { notBundle } from '../dist/plugin'
10
11
const pluginNotBundle = notBundle()
12
pluginNotBundle.apply = undefined
13
+const normalizingNewLineRE = /[\r\n]+/g
14
15
describe('src/plugin', () => {
16
it('notBundle', async () => {
@@ -29,7 +30,9 @@ describe('src/plugin', () => {
29
30
31
const distMain = fs.readFileSync(path.join(__dirname, '__snapshots__/external-main.js'), 'utf-8')
32
const snapMain = fs.readFileSync(path.join(__dirname, 'dist/external-main.js'), 'utf-8')
33
+ const normalDistMain = distMain.replace(normalizingNewLineRE, '\n')
34
+ const normalSnapMain = snapMain.replace(normalizingNewLineRE, '\n')
35
- expect(distMain).equal(snapMain)
36
+ expect(normalDistMain).equal(normalSnapMain)
37
})
38
0 commit comments