chore(root): drip tests removed, --verbose flag added to the jest script

This commit is contained in:
Junior Garcia 2022-10-07 21:58:59 -03:00
parent 7dcf0d0318
commit 6991692525
2 changed files with 1 additions and 20 deletions

View File

@ -34,7 +34,7 @@
"build:docs-meta": "node ./scripts/update-index-docs.js",
"eslint": "eslint packages/**/**/src --ext .ts,.tsx --config .eslintrc.json",
"lint": "turbo run lint",
"test": "jest",
"test": "jest --verbose",
"clean": "pnpm turbo:clean",
"create:cmp": "plop component",
"create:pkg": "plop package",

View File

@ -1,19 +0,0 @@
import * as React from "react";
import {render} from "@testing-library/react";
import { Drip } from "../src";
describe("Drip", () => {
it("should render correctly", () => {
const wrapper = render(<Drip />);
expect(() => wrapper.unmount()).not.toThrow();
});
it("ref should be forwarded", () => {
const ref = React.createRef<HTMLDivElement>();
render(<Drip ref={ref} />);
expect(ref.current).not.toBeNull();
});
});