mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
chore(root): drip tests removed, --verbose flag added to the jest script
This commit is contained in:
parent
7dcf0d0318
commit
6991692525
@ -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",
|
||||
|
||||
@ -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();
|
||||
});
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user