Merge remote-tracking branch 'origin/master' into dlech

This commit is contained in:
David Lechner
2022-07-20 17:25:32 -05:00
4 changed files with 783 additions and 805 deletions
@@ -1,39 +0,0 @@
diff --git a/lib/CalledWithFn.js b/lib/CalledWithFn.js
index 56674799caceb24951e71ab00f20eb53a52c5b6c..1aec49f8c67eb840dba54e937fe49f66a9c13872 100644
--- a/lib/CalledWithFn.js
+++ b/lib/CalledWithFn.js
@@ -30,7 +30,7 @@ const calledWithFn = () => {
fn.mockImplementation((...args) => checkCalledWith(calledWithStack, args));
calledWithStack = [];
}
- calledWithStack.push({ args, calledWithFn });
+ calledWithStack.unshift({ args, calledWithFn });
return calledWithFn;
};
return fn;
diff --git a/lib/cjs/CalledWithFn.js b/lib/cjs/CalledWithFn.js
index 0cdfc48c26a86f4372e19b8abc2cd3c2dd32f357..d374b9bbe2d93ed27f2ea8d8443338dde970a33a 100644
--- a/lib/cjs/CalledWithFn.js
+++ b/lib/cjs/CalledWithFn.js
@@ -30,7 +30,7 @@ const calledWithFn = () => {
fn.mockImplementation((...args) => checkCalledWith(calledWithStack, args));
calledWithStack = [];
}
- calledWithStack.push({ args, calledWithFn });
+ calledWithStack.unshift({ args, calledWithFn });
return calledWithFn;
};
return fn;
diff --git a/lib/mjs/CalledWithFn.js b/lib/mjs/CalledWithFn.js
index 4c90aeb893cf4c11cacc386d08aea6147cc8f9e1..5c4677c2d088392a067d94742415237f539b77f1 100644
--- a/lib/mjs/CalledWithFn.js
+++ b/lib/mjs/CalledWithFn.js
@@ -27,7 +27,7 @@ export const calledWithFn = () => {
fn.mockImplementation((...args) => checkCalledWith(calledWithStack, args));
calledWithStack = [];
}
- calledWithStack.push({ args, calledWithFn });
+ calledWithStack.unshift({ args, calledWithFn });
return calledWithFn;
};
return fn;
@@ -0,0 +1,13 @@
diff --git a/lib/CalledWithFn.js b/lib/CalledWithFn.js
index 56674799caceb24951e71ab00f20eb53a52c5b6c..1aec49f8c67eb840dba54e937fe49f66a9c13872 100644
--- a/lib/CalledWithFn.js
+++ b/lib/CalledWithFn.js
@@ -30,7 +30,7 @@ const calledWithFn = () => {
fn.mockImplementation((...args) => checkCalledWith(calledWithStack, args));
calledWithStack = [];
}
- calledWithStack.push({ args, calledWithFn });
+ calledWithStack.unshift({ args, calledWithFn });
return calledWithFn;
};
return fn;
+11 -11
View File
@@ -8,31 +8,31 @@
"url": "https://github.com/pybricks/pybricks-code"
},
"dependencies": {
"@babel/core": "^7.18.6",
"@babel/core": "^7.18.9",
"@blueprintjs/core": "^4.5.0",
"@blueprintjs/popover2": "^1.4.2",
"@blueprintjs/select": "^4.4.2",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
"@pybricks/firmware": "4.16.1",
"@pybricks/firmware": "4.17.0",
"@pybricks/ide-docs": "2.2.0",
"@pybricks/mpy-cross-v5": "^2.0.0",
"@pybricks/mpy-cross-v6": "^2.0.0",
"@reduxjs/toolkit": "^1.8.3",
"@shopify/react-i18n": "^7.1.3",
"@svgr/webpack": "^6.2.1",
"@svgr/webpack": "^6.3.0",
"@testing-library/dom": "^8.16.0",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^14.2.6",
"@testing-library/user-event": "^14.3.0",
"@types/file-saver": "^2.0.5",
"@types/jest": "^28.1.5",
"@types/jest": "^28.1.6",
"@types/node": "^16.11.7",
"@types/react": "^16.14.24",
"@types/react-dom": "^16.9.14",
"@types/react-splitter-layout": "^3.0.2",
"@types/redux-logger": "^3.0.9",
"@types/semver": "^7.3.10",
"@types/web-bluetooth": "^0.0.14",
"@types/web-bluetooth": "^0.0.15",
"@types/web-locks-api": "^0.0.2",
"@types/wicg-file-system-access": "^2020.9.5",
"@types/zen-push": "^0.1.1",
@@ -63,7 +63,7 @@
"identity-obj-proxy": "^3.0.0",
"jest": "^28.1.3",
"jest-environment-jsdom": "^28.1.3",
"jest-mock-extended": "^2.0.6",
"jest-mock-extended": "^2.0.7",
"jest-resolve": "^28.1.3",
"jest-watch-typeahead": "^2.0.0",
"jszip": "^3.10.0",
@@ -146,9 +146,9 @@
]
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.30.6",
"@typescript-eslint/parser": "^5.30.6",
"eslint": "^8.19.0",
"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-react-app": "^7.0.1",
"eslint-config-typed-fp": "^2.0.1",
@@ -165,7 +165,7 @@
"mq-polyfill@1.1.8": "patch:mq-polyfill@npm:1.1.8#.yarn/patches/mq-polyfill-npm-1.1.8-62fe162439.patch",
"react-error-overlay": "6.0.9",
"react-dev-utils@^12.0.1": "patch:react-dev-utils@npm:12.0.1#.yarn/patches/react-dev-utils-npm-12.0.1-83ba06e3ee.patch",
"jest-mock-extended@^2.0.6": "patch:jest-mock-extended@npm:2.0.6#.yarn/patches/jest-mock-extended-npm-2.0.6-86ec410111.patch"
"jest-mock-extended@^2.0.7": "patch:jest-mock-extended@npm:2.0.7#.yarn/patches/jest-mock-extended-npm-2.0.7-4cdf066556.patch"
},
"jest": {
"roots": [
+759 -755
View File
File diff suppressed because it is too large Load Diff