From 8608baa2d1f77edf917eeb799aa786398802c534 Mon Sep 17 00:00:00 2001 From: "Mark S. Miller" Date: Wed, 28 Aug 2024 17:29:21 -0700 Subject: [PATCH] test: #9986 see if lodash is compat w ses --- packages/exo/package.json | 1 + packages/exo/test/lodash-compat.test.js | 8 ++++++++ yarn.lock | 1 + 3 files changed, 10 insertions(+) create mode 100644 packages/exo/test/lodash-compat.test.js diff --git a/packages/exo/package.json b/packages/exo/package.json index b5e0a277ff..682f36ee7c 100644 --- a/packages/exo/package.json +++ b/packages/exo/package.json @@ -51,6 +51,7 @@ "eslint-config-prettier": "^9.1.0", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-import": "^2.29.1", + "lodash": "^4.17.21", "prettier": "^3.2.5", "typescript": "~5.6.1-rc" }, diff --git a/packages/exo/test/lodash-compat.test.js b/packages/exo/test/lodash-compat.test.js new file mode 100644 index 0000000000..88abfa9232 --- /dev/null +++ b/packages/exo/test/lodash-compat.test.js @@ -0,0 +1,8 @@ +import test from '@endo/ses-ava/prepare-endo.js'; +import _ from 'lodash'; + +// See https://github.com/Agoric/agoric-sdk/discussions/9986 +test('lodash compat', t => { + console.log('test lodash', _.defaults({ a: 1 }, { a: 3, b: 2 })); + t.pass('seems to work'); +}); diff --git a/yarn.lock b/yarn.lock index 009ab5a775..c3eeef09da 100644 --- a/yarn.lock +++ b/yarn.lock @@ -503,6 +503,7 @@ __metadata: eslint-config-prettier: "npm:^9.1.0" eslint-plugin-eslint-comments: "npm:^3.2.0" eslint-plugin-import: "npm:^2.29.1" + lodash: "npm:^4.17.21" prettier: "npm:^3.2.5" typescript: "npm:~5.6.1-rc" languageName: unknown