Skip to content

Commit

Permalink
test: change randomUUID to index
Browse files Browse the repository at this point in the history
  • Loading branch information
aralroca committed Dec 5, 2024
1 parent e306316 commit 511b547
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,14 @@ describe('client-build', () => {
const allWCs = {};

for (let i = 0; i < 20; i += 1) {
const id = crypto.randomUUID();
const wcPath = path.join(temp, `wc-${id}-test.tsx`);
const wcPath = path.join(temp, `wc-${i}-test.tsx`);

fs.writeFileSync(wcPath, `export default () => <wc-${id}-test />;`);
fs.writeFileSync(wcPath, `export default () => <wc-${i}-test />;`);
entrypoints.push(wcPath);
Object.assign(allWCs, { [`wc-${id}-test`]: wcPath });
Object.assign(allWCs, { [`wc-${i}-test`]: wcPath });

Object.assign(webComponentsPerEntrypoint, {
[wcPath]: { [`wc-${id}-test`]: wcPath },
[wcPath]: { [`wc-${i}-test`]: wcPath },
});
}

Expand Down

0 comments on commit 511b547

Please sign in to comment.