This commit is contained in:
Elizabeth Craig 2023-03-08 23:58:34 -08:00 коммит произвёл GitHub
Родитель 3c280fe1d5
Коммит 8bc1b1bfe6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 574 добавлений и 830 удалений

Просмотреть файл

@ -31,7 +31,7 @@
},
"devDependencies": {
"@types/fs-extra": "9.0.13",
"@types/jest": "27.5.2",
"@types/jest": "29.4.0",
"@types/mock-fs": "4.13.1",
"@types/node": "14.18.37",
"@types/semver": "7.3.13",
@ -41,13 +41,13 @@
"beachball": "2.31.11",
"eslint": "8.35.0",
"gh-pages": "4.0.0",
"jest": "27.5.1",
"jest": "29.5.0",
"lage": "1.9.6",
"mock-fs": "5.2.0",
"prettier": "2.8.4",
"syncpack": "8.5.14",
"ts-jest": "27.1.5",
"typescript": "4.1.3",
"ts-jest": "29.0.5",
"typescript": "4.3.5",
"vuepress": "1.9.9",
"vuepress-plugin-mermaidjs": "1.9.1"
},

Просмотреть файл

@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`tscTask using 'tscTask' function with 'build' option where 'build' is custom path and tsconfig.json exists execs expected command 1`] = `
Array [
[
"\${nodeExePath}",
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--build",
@ -10,7 +10,7 @@ Array [
`;
exports[`tscTask using 'tscTask' function with 'build' option where 'build' is multiple paths and they all exist execs expected command 1`] = `
Array [
[
"\${nodeExePath}",
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--build",
@ -21,7 +21,7 @@ Array [
`;
exports[`tscTask using 'tscTask' function with 'project' option where 'project' is custom path and tsconfig.json exists execs expected command 1`] = `
Array [
[
"\${nodeExePath}",
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--project",
@ -30,7 +30,7 @@ Array [
`;
exports[`tscTask using 'tscTask' function with a boolean 'false' switch execs expected command 1`] = `
Array [
[
"\${nodeExePath}",
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--project",
@ -39,7 +39,7 @@ Array [
`;
exports[`tscTask using 'tscTask' function with a boolean 'true' switch execs expected command 1`] = `
Array [
[
"\${nodeExePath}",
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--allowJs",
@ -49,7 +49,7 @@ Array [
`;
exports[`tscTask using 'tscTask' function with a combination of switches execs expected command 1`] = `
Array [
[
"\${nodeExePath}",
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--allowJs",
@ -61,7 +61,7 @@ Array [
`;
exports[`tscTask using 'tscTask' function with empty options execs expected command 1`] = `
Array [
[
"\${nodeExePath}",
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--project",
@ -70,7 +70,7 @@ Array [
`;
exports[`tscTask using 'tscTask' function with no arguments execs expected command 1`] = `
Array [
[
"\${nodeExePath}",
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--project",
@ -79,7 +79,7 @@ Array [
`;
exports[`tscTask using 'tscTask' function with string array option execs expected command 1`] = `
Array [
[
"\${nodeExePath}",
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--lib",
@ -92,7 +92,7 @@ Array [
`;
exports[`tscTask using 'tscTask' function with string value option execs expected command 1`] = `
Array [
[
"\${nodeExePath}",
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--module",
@ -103,7 +103,7 @@ Array [
`;
exports[`tscTask using 'tscWatchTask' function with 'build' option where 'build' is custom path and tsconfig.json exists execs expected command 1`] = `
Array [
[
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--build",
"a/custom/path/tsconfig.json",
@ -112,7 +112,7 @@ Array [
`;
exports[`tscTask using 'tscWatchTask' function with 'build' option where 'build' is multiple paths and they all exist execs expected command 1`] = `
Array [
[
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--build",
"project/a/tsconfig.json",
@ -123,7 +123,7 @@ Array [
`;
exports[`tscTask using 'tscWatchTask' function with 'project' option where 'project' is custom path and tsconfig.json exists execs expected command 1`] = `
Array [
[
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--project",
"a/custom/path/tsconfig.json",
@ -132,7 +132,7 @@ Array [
`;
exports[`tscTask using 'tscWatchTask' function with a boolean 'false' switch execs expected command 1`] = `
Array [
[
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--project",
"\${packageRoot}/tsconfig.json",
@ -141,7 +141,7 @@ Array [
`;
exports[`tscTask using 'tscWatchTask' function with a boolean 'true' switch execs expected command 1`] = `
Array [
[
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--allowJs",
"--project",
@ -151,7 +151,7 @@ Array [
`;
exports[`tscTask using 'tscWatchTask' function with a combination of switches execs expected command 1`] = `
Array [
[
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--allowJs",
"--build",
@ -163,7 +163,7 @@ Array [
`;
exports[`tscTask using 'tscWatchTask' function with empty options execs expected command 1`] = `
Array [
[
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--project",
"\${packageRoot}/tsconfig.json",
@ -172,7 +172,7 @@ Array [
`;
exports[`tscTask using 'tscWatchTask' function with no arguments execs expected command 1`] = `
Array [
[
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--project",
"\${packageRoot}/tsconfig.json",
@ -181,7 +181,7 @@ Array [
`;
exports[`tscTask using 'tscWatchTask' function with string array option execs expected command 1`] = `
Array [
[
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--lib",
"es6",
@ -194,7 +194,7 @@ Array [
`;
exports[`tscTask using 'tscWatchTask' function with string value option execs expected command 1`] = `
Array [
[
"\${repoRoot}/node_modules/typescript/lib/tsc.js",
"--module",
"ESNext",

Просмотреть файл

@ -1,16 +1,22 @@
// @ts-check
const path = require('path');
/** Jest config for packages within the just monorepo */
/**
* Jest config for packages within the just monorepo
* @type {import('@jest/types').Config.InitialOptions}
*/
module.exports = {
roots: ['<rootDir>/src'],
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/?(*.)+(spec|test).[jt]s'],
verbose: true,
globals: {
'ts-jest': {
tsconfig: path.resolve(process.cwd(), 'tsconfig.json'),
packageJson: path.resolve(process.cwd(), 'package.json'),
},
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: path.join(process.cwd(), 'tsconfig.json'),
packageJson: path.join(process.cwd(), 'package.json'),
},
],
},
};

1336
yarn.lock

Разница между файлами не показана из-за своего большого размера Загрузить разницу