Skip to content

Commit c8b2d1b

Browse files
authored
(test only) Integration tests: remove flatMap polyfill (#56546)
This has been supported since Node 11. Remove this from our integration tests. Test Plan: CI Closes WEB-1735
1 parent 7a08f00 commit c8b2d1b

16 files changed

+0
-52
lines changed

test/integration/build-output/test/index.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-env jest */
22

3-
import 'flat-map-polyfill'
43
import { remove } from 'fs-extra'
54
import { nextBuild, File } from 'next-test-utils'
65
import { join } from 'path'

test/integration/css/test/basic-global-support.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-env jest */
2-
import 'flat-map-polyfill'
32
import { readdir, readFile, remove } from 'fs-extra'
43
import { nextBuild } from 'next-test-utils'
54
import { join } from 'path'

test/integration/css/test/css-and-styled-jsx.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-env jest */
2-
import 'flat-map-polyfill'
32
import { remove } from 'fs-extra'
43
import {
54
findPort,

test/integration/css/test/css-compilation.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-env jest */
22
import cheerio from 'cheerio'
3-
import 'flat-map-polyfill'
43
import { readdir, readFile, remove } from 'fs-extra'
54
import {
65
findPort,

test/integration/css/test/css-modules.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-env jest */
22
import cheerio from 'cheerio'
3-
import 'flat-map-polyfill'
43
import { readdir, readFile, remove } from 'fs-extra'
54
import {
65
check,

test/integration/css/test/css-rendering.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-env jest */
2-
import 'flat-map-polyfill'
32
import { pathExists, readFile, readJSON, remove } from 'fs-extra'
43
import {
54
check,

test/integration/css/test/dev-css-handling.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-env jest */
2-
import 'flat-map-polyfill'
32
import { remove } from 'fs-extra'
43
import {
54
check,

test/integration/css/test/valid-invalid-css.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-env jest */
2-
import 'flat-map-polyfill'
32
import { readdir, readFile, remove } from 'fs-extra'
43
import { nextBuild } from 'next-test-utils'
54
import { join } from 'path'

test/integration/fallback-modules/test/index.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-env jest */
22

3-
import 'flat-map-polyfill'
43
import { remove } from 'fs-extra'
54
import { nextBuild } from 'next-test-utils'
65
import { join } from 'path'

test/integration/scss/test/basic-global-support.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-env jest */
22

3-
import 'flat-map-polyfill'
43
import { readdir, readFile, remove } from 'fs-extra'
54
import { nextBuild } from 'next-test-utils'
65
import { join } from 'path'

test/integration/scss/test/basic-scss.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-env jest */
22

33
import cheerio from 'cheerio'
4-
import 'flat-map-polyfill'
54
import { readdir, readFile, remove } from 'fs-extra'
65
import {
76
File,

test/integration/scss/test/css-and-styled-jsx.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-env jest */
22

3-
import 'flat-map-polyfill'
43
import { remove } from 'fs-extra'
54
import {
65
findPort,

test/integration/scss/test/dev-css-handling.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-env jest */
22

3-
import 'flat-map-polyfill'
43
import { remove } from 'fs-extra'
54
import { File, findPort, killApp, launchApp, waitFor } from 'next-test-utils'
65
import webdriver from 'next-webdriver'

test/integration/scss/test/scss-loader-handling.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-env jest */
22

3-
import 'flat-map-polyfill'
43
import { readdir, readFile, remove } from 'fs-extra'
54
import { nextBuild } from 'next-test-utils'
65
import { join } from 'path'

test/integration/scss/test/valid-invalid-scss.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-env jest */
22

3-
import 'flat-map-polyfill'
43
import { remove } from 'fs-extra'
54
import { nextBuild } from 'next-test-utils'
65
import { join } from 'path'

test/lib/flat-map-polyfill.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)