Skip to content

Commit

Permalink
Add linked modules test (0.9.x) (facebook#1912)
Browse files Browse the repository at this point in the history
* Add linked modules test

* Keep fallback after eject
  • Loading branch information
Timer authored and athill committed May 24, 2017
1 parent d1f1467 commit d9758a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ describe('Integration', () => {
);
});

it('linked modules', async () => {
const doc = await initDOM('linked-modules')

expect(doc.getElementById('feature-linked-modules').textContent).to.equal('2.0.0')
})

it('svg inclusion', async () => {
const doc = await initDOM('svg-inclusion');

Expand Down
3 changes: 3 additions & 0 deletions packages/react-scripts/fixtures/kitchensink/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ class App extends Component {
import('./features/webpack/LinkedModules').then(f =>
this.setFeature(f.default));
break;
case 'linked-modules':
require.ensure([], () => this.setFeature(require('./features/webpack/LinkedModules').default));
break;
case 'node-path':
import('./features/env/NodePath').then(f => this.setFeature(f.default));
break;
Expand Down

0 comments on commit d9758a2

Please sign in to comment.