From 0f4a83596646c610c06b751fc8ac0fc51f90d796 Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Tue, 10 Jan 2023 10:32:59 -0500 Subject: [PATCH] Remove duplicate JSResourceReferenceImpl mock (#25976) This mock exists in 2 directories (with identical implementation) and Jest just picks one at random. This removes one which makes it at least deterministic and fixes a Jest warning on startup. It existed in these 2 places: - `packages/react-server-dom-relay/src/__mocks__/JSResourceReferenceImpl.js` - `packages/react-server-native-relay/src/__mocks__/JSResourceReferenceImpl.js` (removed) --- .../src/__mocks__/JSResourceReferenceImpl.js | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 packages/react-server-native-relay/src/__mocks__/JSResourceReferenceImpl.js diff --git a/packages/react-server-native-relay/src/__mocks__/JSResourceReferenceImpl.js b/packages/react-server-native-relay/src/__mocks__/JSResourceReferenceImpl.js deleted file mode 100644 index 70414ab21135d..0000000000000 --- a/packages/react-server-native-relay/src/__mocks__/JSResourceReferenceImpl.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -class JSResourceReferenceImpl { - constructor(moduleId) { - this._moduleId = moduleId; - } - getModuleId() { - return this._moduleId; - } -} - -module.exports = JSResourceReferenceImpl;