Skip to content

Commit 250ca2a

Browse files
build: Use .cjs file extension with CJS jest configs (#19502)
Renames all the Jest config files to use the .cjs file extension. This will make it easier to add type: module to ESM-only packages. I used these commands to do the bulk of the work: ```shell fd --glob "**/jest*.config.js" --hidden --exec mv {} {.}.cjs fd --extension test.ts --exec sd --fixed-strings 'jest.config";' 'jest.config.cjs";' ``` --------- Co-authored-by: Daniel Lehenbauer <[email protected]>
1 parent 5223bbd commit 250ca2a

File tree

112 files changed

+34
-34
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+34
-34
lines changed

examples/apps/collaborative-textarea/tests/collaborativetext.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License.
44
*/
55

6-
import { globals } from "../jest.config";
6+
import { globals } from "../jest.config.cjs";
77
import { retryWithEventualValue } from "@fluidframework/test-utils";
88

99
describe("collaborativetext", () => {

examples/apps/contact-collection/tests/contactCollection.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License.
44
*/
55

6-
import { globals } from "../jest.config";
6+
import { globals } from "../jest.config.cjs";
77

88
// Tests disabled -- requires Tinylicious to be running, which our test environment doesn't do.
99
describe("contactCollection", () => {

0 commit comments

Comments
 (0)