Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak tests and cover optional chaining #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// @flow

import './transpile-class.js'
import './transpile-object-spread.js'
// import './transpile-optional-chaining.js'
import './transpile-react-jsx.js'
import './transpile-strip-flow.js'

// The following test makes sure that builtin transpiler strips type annotations
// from inside JSX
const Component = props => (
Expand Down
3 changes: 1 addition & 2 deletions test/transpile-builtin/test.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

$FPACK index-1.js --preprocess='^.*'
$FPACK index.js --preprocess='^.*' --mock=foo --mock=bar --mock=baz --mock=react
781 changes: 777 additions & 4 deletions test/transpile-builtin/test/index.js

Large diffs are not rendered by default.

File renamed without changes.
1 change: 1 addition & 0 deletions test/transpile-builtin/transpile-optional-chaining.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const field = data?.property?.field;