Skip to content

Commit

Permalink
refactor(commonTests): split up helpers into individual modules (#9112)
Browse files Browse the repository at this point in the history
**Related Issue:** #9056

## Summary
Split up commonTest helpers into individual modules.
  • Loading branch information
Elijbet authored Apr 22, 2024
1 parent 30cccde commit bdd19c7
Show file tree
Hide file tree
Showing 20 changed files with 1,968 additions and 1,848 deletions.
30 changes: 24 additions & 6 deletions packages/calcite-components/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,18 @@ module.exports = {
},
],
"no-new-func": "error",
"no-restricted-imports": [
"error",
{
patterns: [
{
group: ["tests/commonTests/*"],
message:
"Import named functions from commonTests instead of direct module imports, e.g., import { disabled } from 'tests/commonTests'",
},
],
},
],
"no-unneeded-ternary": "error",
"one-var": ["error", "never"],
"react/forbid-component-props": [
Expand Down Expand Up @@ -155,10 +167,16 @@ module.exports = {
ignorePrivate: true,
},
},
overrides: [{
files: ["**/*.e2e.ts", "src/tests/**/*"],
rules: {
"@esri/calcite-components/no-dynamic-createelement": "off",
}
}]
overrides: [
{
files: ["**/*.e2e.ts", "src/tests/**/*"],
rules: {
"@esri/calcite-components/no-dynamic-createelement": "off",
},
},
{
extends: ["plugin:@typescript-eslint/disable-type-checked"],
files: ["*.cjs"],
},
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
reflects,
renders,
t9n,
TagAndPage,
} from "../../tests/commonTests";
import { TagAndPage } from "../../tests/commonTests/interfaces";
import { toUserFriendlyName } from "./utils";

describe("calcite-input-time-zone", () => {
Expand Down
Loading

0 comments on commit bdd19c7

Please sign in to comment.