Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

deps: update jest monorepo to v29. (major) #115

Merged
merged 2 commits into from
Aug 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"graphql": "^16.6.0",
"graphql-tag": "^2.12.6",
"husky": "^8.0.1",
"jest": "^28.1.3",
"jest": "^29.0.1",
"monodeploy": "^3.3.0",
"packemon": "^2.3.7",
"prettier": "^2.7.1",
Expand Down
20 changes: 10 additions & 10 deletions packages/babel-preset/test/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`babel typescript test typescript decorators 1`] = `
"\\"use strict\\";
""use strict";

var _interopRequireDefault = require(\\"@babel/runtime/helpers/interopRequireDefault\\");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, \\"__esModule\\", {
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;

var _applyDecoratedDescriptor2 = _interopRequireDefault(require(\\"@babel/runtime/helpers/applyDecoratedDescriptor\\"));
var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));

var _class;

Expand All @@ -19,27 +19,27 @@ let Cls = (_class = class Cls {
console.log('Test');
}

}, ((0, _applyDecoratedDescriptor2.default)(_class.prototype, \\"foo\\", [decorator], Object.getOwnPropertyDescriptor(_class.prototype, \\"foo\\"), _class.prototype)), _class);
}, ((0, _applyDecoratedDescriptor2.default)(_class.prototype, "foo", [decorator], Object.getOwnPropertyDescriptor(_class.prototype, "foo"), _class.prototype)), _class);
;
var _default = Cls;
exports.default = _default;"
`;

exports[`babel typescript test typescript transpilation 1`] = `
"\\"use strict\\";
""use strict";

var _interopRequireDefault = require(\\"@babel/runtime/helpers/interopRequireDefault\\");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, \\"__esModule\\", {
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;

var _classPrivateFieldSet2 = _interopRequireDefault(require(\\"@babel/runtime/helpers/classPrivateFieldSet\\"));
var _classPrivateFieldSet2 = _interopRequireDefault(require("@babel/runtime/helpers/classPrivateFieldSet"));

function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }

function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError(\\"Cannot initialize the same private elements twice on an object\\"); } }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }

var _initialized = /*#__PURE__*/new WeakMap();

Expand Down
6 changes: 3 additions & 3 deletions packages/jest-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"version": "1.0.4",
"author": "Jan Šilhan <silhanu@gmail.com>",
"dependencies": {
"@jest/types": "^28.1.3",
"@jest/types": "^29.0.1",
"@rajzik/configs-shared": "workspace:^1.0.0",
"@types/jest": "^28.1.8",
"jest-junit": "^14.0.1"
},
"devDependencies": {
"jest": "^28.1.3",
"jest": "^29.0.1",
"tsconfig-rajzik": "workspace:*"
},
"engines": {
Expand Down Expand Up @@ -40,7 +40,7 @@
"support": "current"
},
"peerDependencies": {
"jest": "^28.0.0"
"jest": "^28.0.0 || ^29.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
Loading