Skip to content

Commit 1293000

Browse files
authored
Turbopack: add webpack scope-hoisting tests (#79457)
Add them already, they should pass even without scope hoisting.
1 parent 8864d00 commit 1293000

File tree

194 files changed

+903
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+903
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Goes through all subfolders of $folder and moves all files into a new "input" subdirectory
2+
3+
4+
folder=scope-hoisting
5+
6+
set -e
7+
shopt -s extglob
8+
9+
for f in "$folder"/*; do
10+
mkdir -p "$f/input"
11+
mv "$f"/!(input) "$f"/input
12+
done
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default 'default'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import value from './async'
2+
3+
it('should have the correct values', function () {
4+
expect(value).toBe('default')
5+
})
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export var named = 'named'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './a'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { named } from './b'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { named } from './c'
2+
3+
it('should have the correct values', function () {
4+
expect(named).toBe('named')
5+
})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import './a2'
2+
import './b1'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import './b2'
2+
import './c1'

0 commit comments

Comments
 (0)