Skip to content

Conversation

Krakazybik
Copy link
Member

@Krakazybik Krakazybik commented Dec 24, 2021

Description

Добавлено:
Тесты Segment Pubblic API

References

#47

Checklist

  • Description added
  • Self-reviewed
  • CI pass

@Krakazybik Krakazybik self-assigned this Dec 24, 2021
@Krakazybik Krakazybik requested a review from azinit December 24, 2021 20:35
@azinit azinit linked an issue Dec 24, 2021 that may be closed by this pull request
@Krakazybik Krakazybik requested a review from azinit December 24, 2021 21:11
Comment on lines +35 to +54
describe("Exclusive Segments Public API for shared layer:", () => {
it("Should lint with errors.", async () => {
const report = await eslint.lintText(`
import { Button } from "shared/ui/button/button";
import { Date } from "shared/lib/date/date";
`,
{ filePath: "src/features/smth/index.ts" });
assert.strictEqual(report[0].errorCount, 2);
});

it("Should lint without errors.", async () => {
const report = await eslint.lintText(`
import { Button } from "shared/ui/button";
import { SexyButton } from "shared/ui";
import { Parser } from "shared/lib";
import { Date } from "shared/lib/date";
`, { filePath: "src/features/smth/index.ts" });

assert.strictEqual(report[0].errorCount, 0);
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: Стало лучше! 🚀

@Krakazybik Krakazybik merged commit fb6b642 into master Dec 24, 2021
@Krakazybik Krakazybik deleted the test/LINT-47-public-segment-api branch December 24, 2021 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LINT: Impl "segment-public-api" boundaries
2 participants