Skip to content

Commit 5a9a627

Browse files
committed
Make test-types work with tsc and XO
This used to work… but didn't for the new timout tests.
1 parent 6ca0f1c commit 5a9a627

23 files changed

+35
-28
lines changed
File renamed without changes.
File renamed without changes.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"exports": {
1212
".": {
1313
"import": {
14-
"types": "./entrypoints/main.d.ts",
14+
"types": "./entrypoints/main.d.mts",
1515
"default": "./entrypoints/main.mjs"
1616
},
1717
"require": {
@@ -22,7 +22,7 @@
2222
"./eslint-plugin-helper": "./entrypoints/eslint-plugin-helper.cjs",
2323
"./plugin": {
2424
"import": {
25-
"types": "./entrypoints/plugin.d.ts",
25+
"types": "./entrypoints/plugin.d.mts",
2626
"default": "./entrypoints/plugin.mjs"
2727
},
2828
"require": {

test-types/import-in-cts/assertions-as-type-guards.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import test from 'ava';
1+
import test from '../../entrypoints/main.cjs';
22
import {expectType} from 'tsd';
33

44
type Expected = {foo: 'bar'};

test-types/import-in-cts/context.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable @typescript-eslint/no-empty-function */
2-
import anyTest, {ExecutionContext, TestFn} from 'ava';
2+
import anyTest, {ExecutionContext, TestFn} from '../../entrypoints/main.cjs';
33
import {expectError, expectType} from 'tsd';
44

55
interface Context {

test-types/import-in-cts/deep-equal.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import test from 'ava';
1+
import test from '../../entrypoints/main.cjs';
22
import {expectType} from 'tsd';
33

44
test('actual extends expected', t => {

test-types/import-in-cts/implementation-result.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable @typescript-eslint/no-empty-function */
2-
import test from 'ava';
2+
import test from '../../entrypoints/main.cjs';
33

44
test.after('return anything else', _t => ({
55
foo: 'bar',

test-types/import-in-cts/like.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import test from 'ava';
1+
import test from '../../entrypoints/main.cjs';
22

33
test('like', t => {
44
t.like({

test-types/import-in-cts/macros.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable no-lone-blocks */
2-
import test, {ExecutionContext} from 'ava';
2+
import test, {ExecutionContext} from '../../entrypoints/main.cjs';
33
import {expectType} from 'tsd';
44

55
// Typed arguments through generics.

test-types/import-in-cts/snapshot.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import test from 'ava';
1+
import test from '../../entrypoints/main.cjs';
22
import {expectError} from 'tsd';
33

44
test('snapshot', t => {

0 commit comments

Comments
 (0)