chore: Check for issues already fixed (#2429)

- Closes #2372.
 - Closes #2351.
This commit is contained in:
Donny/강동윤 2021-10-14 13:15:10 +09:00 committed by GitHub
parent 267d639c2e
commit a25d67bfbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,8 @@
{
"jsc": {
"parser": {
"syntax": "ecmascript",
"jsx": true
}
}
}

View File

@ -0,0 +1 @@
const a = <abbr title="\d">\d</abbr>;

View File

@ -0,0 +1,3 @@
var a = /*#__PURE__*/ React.createElement("abbr", {
title: "d"
}, "\\d");

View File

@ -0,0 +1,40 @@
[
{
"env": {
"targets": {
"node": "12.19.0"
}
},
"jsc": {
"parser": {
"dynamicImport": true,
"syntax": "typescript",
"tsx": false
},
"target": "es2015"
},
"module": {
"type": "commonjs"
},
"sourceMaps": true,
"test": ".*.ts$"
},
{
"env": {
"targets": {
"node": "12.19.0"
}
},
"jsc": {
"parser": {
"dynamicImport": true,
"syntax": "ecmascript"
},
"target": "es2015"
},
"module": {
"type": "commonjs"
},
"test": ".*.js$"
}
]

View File

@ -0,0 +1,11 @@
import { sum } from './';
describe('example test that should fail due to compilation', () => {
test.each([
['a', 1, 1, 2],
['b', 2, 2, 4],
])('for entry %s', (_, a, b, expected) => {
const result = sum(a, b);
expect(result).toEqual(expected);
});
});

View File

@ -0,0 +1,21 @@
"use strict";
var _1 = require("./");
describe('example test that should fail due to compilation', ()=>{
test.each([
[
'a',
1,
1,
2
],
[
'b',
2,
2,
4
],
])('for entry %s', (_, a, b, expected)=>{
const result = (0, _1).sum(a, b);
expect(result).toEqual(expected);
});
});