Update @jspsych/config dependencies

This commit is contained in:
bjoluc 2022-05-16 17:00:03 +02:00
parent efefb01911
commit e77371e94b
5 changed files with 9541 additions and 6040 deletions

View File

@ -0,0 +1,5 @@
---
"@jspsych/config": patch
---
Update dependencies, including Jest v27 to v28. The changelogs have been carefully checked and no breaking changes are to be expected in packages using `@jspsych/config`. Check out the [Jest 28 blog post](https://jestjs.io/blog/2022/04/25/jest-28) for a summary of the changes in Jest.

15531
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -30,7 +30,9 @@
"lint-staged": "^12.3.5",
"prettier": "^2.5.1",
"prettier-plugin-import-sort": "^0.0.7",
"turbo": "^1.1.10"
"turbo": "^1.1.10",
"jest": "*",
"ts-jest": "*"
},
"prettier": {
"printWidth": 100

View File

@ -1,6 +1,7 @@
const ts = require("typescript");
const { pathsToModuleNameMapper } = require("ts-jest/utils");
const { pathsToModuleNameMapper } = require("ts-jest");
/** @type { (dirname: string) => import('@jest/types').Config.InitialOptions } */
module.exports.makePackageConfig = (dirname) => {
const packageJson = require(dirname + "/package.json");
const packageBaseName = packageJson.name.replace("@jspsych/", "");
@ -14,15 +15,13 @@ module.exports.makePackageConfig = (dirname) => {
return {
preset: "ts-jest",
moduleNameMapper: pathsToModuleNameMapper(tsCompilerOptions.paths, {
prefix: "<rootDir>/",
}),
moduleNameMapper: pathsToModuleNameMapper(tsCompilerOptions.paths, { prefix: "<rootDir>/" }),
testEnvironment: "jsdom",
testEnvironmentOptions: {
fetchExternalResources: true,
pretendToBeVisual: true,
url: "http://localhost/",
},
testURL: "http://localhost/",
displayName: {
name: packageBaseName,
color: packageBaseName === "jspsych" ? "white" : "cyanBright",

View File

@ -39,31 +39,31 @@
},
"homepage": "https://www.jspsych.org/latest/developers/configuration",
"dependencies": {
"@babel/cli": "7.15.7",
"@babel/core": "7.15.5",
"@babel/preset-env": "7.15.6",
"@rollup/plugin-babel": "5.3.0",
"@rollup/plugin-commonjs": "19.0.0",
"@babel/cli": "7.17.10",
"@babel/core": "7.17.10",
"@babel/preset-env": "7.17.10",
"@rollup/plugin-babel": "5.3.1",
"@rollup/plugin-commonjs": "22.0.0",
"@rollup/plugin-json": "4.1.0",
"@rollup/plugin-node-resolve": "13.0.5",
"@rollup/plugin-node-resolve": "13.3.0",
"@types/gulp": "4.0.9",
"@types/jest": "27.0.2",
"babel-preset-minify": "0.5.1",
"canvas": "2.8.0",
"@types/jest": "27.5.1",
"babel-preset-minify": "0.5.2",
"canvas": "2.9.1",
"gulp": "4.0.2",
"gulp-cli": "2.3.0",
"gulp-file": "^0.4.0",
"gulp-rename": "2.0.0",
"gulp-replace": "1.1.3",
"gulp-zip": "5.1.0",
"jest": "27.2.4",
"jest-environment-jsdom": "27.2.4",
"jest": "28.1.0",
"jest-environment-jsdom": "28.1.0",
"merge-stream": "2.0.0",
"rollup": "2.58.0",
"rollup": "2.73.0",
"rollup-plugin-terser": "7.0.2",
"rollup-plugin-typescript2": "0.30.0",
"ts-jest": "27.0.5",
"tslib": "2.3.1",
"typescript": "4.4.3"
"rollup-plugin-typescript2": "0.31.2",
"ts-jest": "28.0.2",
"tslib": "2.4.0",
"typescript": "^4.6.4"
}
}