@samitouri / QOS-React-2 / commits / 0f4a835966

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)

Jan Kassens committed Jan 10, 2023 at 10:32 UTC 0f4a83596646c610c06b751fc8ac0fc51f90d796
1 file changed -19
packages/react-server-native-relay/src/__mocks__/JSResourceReferenceImpl.js deleted
-19
@@ -1,19 +0,0 @@
1 -/**
2 - * Copyright (c) Meta Platforms, Inc. and affiliates.
3 - *
4 - * This source code is licensed under the MIT license found in the
5 - * LICENSE file in the root directory of this source tree.
6 - */
7 -
8 -'use strict';
9 -
10 -class JSResourceReferenceImpl {
11 - constructor(moduleId) {
12 - this._moduleId = moduleId;
13 - }
14 - getModuleId() {
15 - return this._moduleId;
16 - }
17 -}
18 -
19 -module.exports = JSResourceReferenceImpl;