Skip to content

Commit

Permalink
build: fix libraries test after changing to .cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
victordidenko committed Feb 17, 2022
1 parent b93bf3b commit 2c64a63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/libraries.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const {
test('commonjs index with multiple words', () => {
expect(createCommonJsIndex(['first', 'second-item', 'another-text-demo']))
.toMatchInlineSnapshot(`
"module.exports.anotherTextDemo = require('./another-text-demo').anotherTextDemo;
module.exports.first = require('./first').first;
module.exports.secondItem = require('./second-item').secondItem;
"module.exports.anotherTextDemo = require('./another-text-demo/index.cjs').anotherTextDemo;
module.exports.first = require('./first/index.cjs').first;
module.exports.secondItem = require('./second-item/index.cjs').secondItem;
"
`);
});
Expand Down

0 comments on commit 2c64a63

Please sign in to comment.