Skip to content

Commit

Permalink
test(smoke): Adapt the CommonJS bundle import
Browse files Browse the repository at this point in the history
  • Loading branch information
armandabric committed Jan 20, 2019
1 parent 551cce5 commit 66f6568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/smoke/smoke.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const requireReactElementToJsxString = buildType => {
if (buildType === 'esm') {
return require(`./../../dist/esm`).default;
} else if (buildType === 'cjs') {
return require('./../../dist/cjs');
return require('./../../dist/cjs').default;
}

throw new Error(`Unknown build type: "${buildType}"`);
Expand Down

0 comments on commit 66f6568

Please sign in to comment.