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 13ae093
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 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 All @@ -105,7 +105,7 @@ jest.mock(
getCacheKeyAsync: jest.fn(() => Promise.resolve('ab')),
processAsync: (content, filename, config) =>
Promise.resolve({
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 Expand Up @@ -178,7 +178,7 @@ jest.mock(
const transformer: Transformer = {
getCacheKey: jest.fn(() => 'cd'),
process: (content, filename) => ({
code: (require('dedent') as typeof import('dedent'))`
code: (require('dedent') as typeof import('dedent').default)`
module.exports = {
filename: ${filename},
rawFirstLine: ${content.split('\n')[0]},
Expand Down

0 comments on commit 13ae093

Please sign in to comment.