You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should have a test in style-spec.test.ts like below to ensure the latest object is exported:
import {latest as latestInBundle} from '../../dist/index';
test('"latest" entry point should be defined', async () => {
expect(latestInBundle).toBeDefined();
});
We have a Jest 29 problem here, because it's a test of the index.d.ts file, which uses standard ESM import/export, and Jest doesn't support that, so I get:
"unexpected token 'export'"
We have two options - we can swap for Vitest now, or wait till Jest 30 is out, which is in progress, and try with that.
The text was updated successfully, but these errors were encountered:
Related to:
latest
#905We should have a test in style-spec.test.ts like below to ensure the
latest
object is exported:import {latest as latestInBundle} from '../../dist/index';
test('"latest" entry point should be defined', async () => {
expect(latestInBundle).toBeDefined();
});
We have a Jest 29 problem here, because it's a test of the index.d.ts file, which uses standard ESM import/export, and Jest doesn't support that, so I get:
"unexpected token 'export'"
We have two options - we can swap for Vitest now, or wait till Jest 30 is out, which is in progress, and try with that.
The text was updated successfully, but these errors were encountered: