remove Object.fromEntries polyfill for node 10 in test utils (#30657)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
stefanprobst 2021-10-30 12:51:59 +02:00 committed by GitHub
parent 48874f1a44
commit 77e1565f18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,12 +20,6 @@ import treeKill from 'tree-kill'
export const nextServer = server
export const pkg = _pkg
// polyfill Object.fromEntries for the test/integration/relay-analytics tests
// on node 10, this can be removed after we no longer support node 10
if (!Object.fromEntries) {
Object.fromEntries = require('core-js/features/object/from-entries')
}
export function initNextServerScript(
scriptPath,
successRegexp,