Skip to content

Commit 6436e36

Browse files
ProdigySimljharb
authored andcommitted
[Tests] named: Run all TypeScript tests
1 parent d160285 commit 6436e36

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
66

77
## [Unreleased]
88

9+
### Changed
10+
- [Tests] `named`: Run all TypeScript test ([#2427], thanks [@ProdigySim])
11+
912
## [2.26.0] - 2022-04-05
1013

1114
### Added
@@ -977,6 +980,7 @@ for info on changes for earlier releases.
977980

978981
[`memo-parser`]: ./memo-parser/README.md
979982

983+
[#2427]: https://github.com/import-js/eslint-plugin-import/pull/2427
980984
[#2417]: https://github.com/import-js/eslint-plugin-import/pull/2417
981985
[#2411]: https://github.com/import-js/eslint-plugin-import/pull/2411
982986
[#2393]: https://github.com/import-js/eslint-plugin-import/pull/2393
@@ -1624,6 +1628,7 @@ for info on changes for earlier releases.
16241628
[@Pessimistress]: https://github.com/Pessimistress
16251629
[@pmcelhaney]: https://github.com/pmcelhaney
16261630
[@preco21]: https://github.com/preco21
1631+
[@ProdigySim]: https://github.com/ProdigySim
16271632
[@pzhine]: https://github.com/pzhine
16281633
[@ramasilveyra]: https://github.com/ramasilveyra
16291634
[@randallreedjr]: https://github.com/randallreedjr

tests/src/rules/named.js

+15-6
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,16 @@ context('TypeScript', function () {
390390

391391
const valid = [];
392392
const invalid = [
393-
test({
394-
code: `import {a} from './export-star-3/b';`,
395-
filename: testFilePath('./export-star-3/a.js'),
396-
parser,
397-
settings,
398-
}),
393+
// TODO: uncomment this test
394+
// test({
395+
// code: `import {a} from './export-star-3/b';`,
396+
// filename: testFilePath('./export-star-3/a.js'),
397+
// parser,
398+
// settings,
399+
// errors: [
400+
// { message: 'a not found in ./export-star-3/b' },
401+
// ],
402+
// }),
399403
];
400404

401405
[
@@ -469,5 +473,10 @@ context('TypeScript', function () {
469473
}),
470474
);
471475
});
476+
477+
ruleTester.run(`named [TypeScript]`, rule, {
478+
valid,
479+
invalid,
480+
});
472481
});
473482
});

0 commit comments

Comments
 (0)