Skip to content

Commit

Permalink
fix: update dedent imports
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jul 15, 2023
1 parent 0ca2667 commit ba2ee74
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import * as path from 'path';
import * as util from 'util';
import dedent = require('dedent');
import dedent from 'dedent';
import {
ExecaSyncError,
SyncOptions as ExecaSyncOptions,
Expand Down
2 changes: 1 addition & 1 deletion e2e/runJest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import * as path from 'path';
import {Writable} from 'stream';
import dedent = require('dedent');
import dedent from 'dedent';
import execa = require('execa');
import * as fs from 'graceful-fs';
import stripAnsi = require('strip-ansi');
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-circus/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import * as path from 'path';
import co from 'co';
import dedent = require('dedent');
import dedent from 'dedent';
import isGeneratorFn from 'is-generator-fn';
import slash = require('slash');
import StackUtils = require('stack-utils');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jest.mock(
const transformer: Transformer = {
getCacheKey: jest.fn(() => 'ab'),
process: (content, filename, config) => ({
code: (require('dedent') as typeof import('dedent'))`
code: (require('dedent') as typeof import('dedent').default)`
const TRANSFORMED = {
filename: '${escapeStrings(filename)}',
script: '${escapeStrings(content)}',
Expand Down

0 comments on commit ba2ee74

Please sign in to comment.