Skip to content

Commit 2767bfc

Browse files
committed
Rework test file structure
1 parent 3cd30cc commit 2767bfc

6 files changed

Lines changed: 8 additions & 76 deletions

File tree

test/_bundleme.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

test/_importme.js

Lines changed: 0 additions & 69 deletions
This file was deleted.

test/fixtures/bundle.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'use strict'
2+
3+
import { aSmallConst } from './import-a'
4+
import { anotherSmallConst } from './import-b'
5+
6+
console.log(aSmallConst.length, anotherSmallConst.length)

test/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// setup
44
import test from 'ava'
55
import { rollup } from 'rollup'
6+
// import { rollup as rollup59 } from 'rollup59'
67
import analyzer, { init, formatted, analyze } from './../index'
78
const baseOpts = {
89
input: 'module.js',
@@ -13,7 +14,7 @@ let bundle, bundleToo
1314
// create the bundle
1415
test.before(async () => {
1516
bundle = await rollup(baseOpts)
16-
bundleToo = await rollup({input: 'test/_bundleme.js', output: {format: 'cjs'}})
17+
bundleToo = await rollup({input: 'test/fixtures/bundle.js', output: {format: 'cjs'}})
1718
})
1819

1920
// main

0 commit comments

Comments
 (0)