Estoy tratando de conectar pruebas a mi proyecto pero no funcionan
¿Qué puedes hacer al respecto?
ERROR: No se pudo ejecutar el conjunto de pruebas Detalles:
E:\Work\repos\WebRep\node_modules\@microsoft\signalr\dist\esm\index.js:3 export { AbortError, HttpError, TimeoutError } from "./Errors"; SyntaxError: Unexpected token 'export' > 1 | import * as signalR from '@microsoft/signalr/dist/esm/index'; | ^ 2 | import EventEmitter from '../helpers/event-emitter'; 3 | import * as scheduleNamespace from '../interfaces/schedules/schedules-dto'; 4 | import * as projectNamespace from '../interfaces/projects/projects-dto'; at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1597:14) at Object.<anonymous> (src/signalr-client/signalr.ts:1:2)jest.config.js
// jest.config.js const { pathsToModuleNameMapper } = require('ts-jest/utils'); // In the following statement, replace `./tsconfig` with the path to your `tsconfig` file // which contains the path mapping (ie the `compilerOptions.paths` option): const { compilerOptions } = require('./tsconfig'); module.exports = { preset: 'ts-jest', moduleFileExtensions: ['js', 'ts', 'tsx', 'json', 'node'], transform: { '.*\\.(vue)$': 'vue3-jest', '^.+\\.ts?$': 'ts-jest', '^.+\\.scss$': 'jest-scss-transform', '^.+\\.[t|j]sx?$': 'babel-jest', }, transformIgnorePatterns: ['node_modules'], testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$', moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { prefix: '<rootDir>/' }), collectCoverage: true, testEnvironment: 'jsdom', };