Skip to content

Commit 7270f48

Browse files
jacobparisericallam
authored andcommitted
fix: tests
1 parent ba42fa7 commit 7270f48

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/eslint-plugin/lib/rules/no-trigger-core-import.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const allowedBarrelFiles = getAllowedBarrelFiles();
1818

1919
function getAllowedBarrelFiles() {
2020
const packageJsonPath = path.resolve(
21-
process.cwd().replace("apps/webapp", ""),
21+
process.cwd().replace("apps/webapp", "").replace("packages/eslint-plugin", ""),
2222
"packages/core/package.json"
2323
);
2424

packages/eslint-plugin/tests/lib/rules/no-trigger-core-import.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ import { stringifyIO } from '@trigger.dev/core/v3/utils/ioSerialization';`,
6161
{
6262
code: `import {
6363
isExceptionSpanEvent,
64-
type ExceptionEventProperties,
65-
type SpanEvent as OtelSpanEvent,
64+
ExceptionEventProperties,
65+
SpanEvent as OtelSpanEvent,
6666
} from "@trigger.dev/core/v3";`,
67-
output: `import { isExceptionSpanEvent } from "@trigger.dev/core/v3/schemas";
68-
import { type ExceptionEventProperties } from "@trigger.dev/core/v3/schemas";
69-
import { type SpanEvent as OtelSpanEvent } from "@trigger.dev/core/v3/schemas";`,
67+
output: `import { isExceptionSpanEvent } from '@trigger.dev/core/v3/schemas';
68+
import { ExceptionEventProperties } from '@trigger.dev/core/v3/schemas';
69+
import { SpanEvent as OtelSpanEvent } from '@trigger.dev/core/v3/schemas';`,
7070
errors: [
7171
{
7272
messageId: "noTriggerCoreImportFixable",

0 commit comments

Comments
 (0)