We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fdfdfa commit c545c20Copy full SHA for c545c20
1 file changed
packages/formatjs/__tests__/wasm.test.ts
@@ -121,11 +121,11 @@ describe("formatjs swc plugin", () => {
121
});
122
`;
123
124
- const output = await transformCode(input);
+ const output = await transformCode(input, { ast: true });
125
126
expect(output).toMatch(/id: "[^"]+"/);
127
- // Should concatenate strings, not produce an empty array
128
- expect(output).toMatch(/defaultMessage: "Hello world"/);
+ // In AST mode, defaultMessage should be a non-empty ICU AST array.
+ expect(output).toMatch(/defaultMessage: \[/);
129
expect(output).not.toMatch(/defaultMessage: \[\]/);
130
131
0 commit comments