Skip to content

Commit

Permalink
Added new indirect single test
Browse files Browse the repository at this point in the history
  • Loading branch information
swernerx committed Dec 17, 2018
1 parent 822d021 commit 41eccb6
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/indirect-single/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Indirect Single 1`] = `
"bsdudxaF.md
index.js"
`;
5 changes: 5 additions & 0 deletions test/indirect-single/child.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import content from "./content.md"

export default function() {
return content
}
1 change: 1 addition & 0 deletions test/indirect-single/content.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Hello
2 changes: 2 additions & 0 deletions test/indirect-single/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import child from "./child"
export default child
12 changes: 12 additions & 0 deletions test/indirect-single/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* global __dirname */
import { bundle, clean, list } from "../util"

const root = __dirname

test("Indirect Single", async () => {
await bundle(root, "index.js", "output/index.js")

expect(list(root, "output")).resolves.toMatchSnapshot()

await clean(root, "output")
})

0 comments on commit 41eccb6

Please sign in to comment.