Includes test for #8354 (#10385)

This commit is contained in:
Thiago Arrais
2019-09-02 16:58:54 -03:00
committed by Nicolò Ribaudo
parent 7c0333e12a
commit e7fa566442
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
const foo = undefined;
const bar = 'bar';
const foobar = foo?.replace(`foo${bar}`, '');
expect(foobar).toBe(undefined);

View File

@@ -0,0 +1,3 @@
{
"plugins": ["proposal-optional-chaining", "transform-template-literals"]
}