Skip to content

Commit

Permalink
Merge pull request #31 from RSlijkhuis/package-upgrades
Browse files Browse the repository at this point in the history
Upgraded React and Jest packages
  • Loading branch information
RSlijkhuis authored Jun 13, 2022
2 parents 36b6827 + 3719b69 commit 84bc72c
Show file tree
Hide file tree
Showing 21 changed files with 10,738 additions and 3,440 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react"]
}
4 changes: 4 additions & 0 deletions __tests__/AllCheckboxEventTests.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* @jest-environment jsdom
*/

import {cleanup, fireEvent, render} from "@testing-library/react";
import React from "react";
import {AllCheckerCheckbox, Checkbox, CheckboxGroup} from "../src";
Expand Down
4 changes: 4 additions & 0 deletions __tests__/CheckboxAllCheckerCheckboxTest.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* @jest-environment jsdom
*/

import {cleanup, render} from '@testing-library/react';
import React from 'react';
import {AllCheckerCheckbox, Checkbox, CheckboxGroup} from "../src";
Expand Down
4 changes: 4 additions & 0 deletions __tests__/CheckboxDefaultsTest.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* @jest-environment jsdom
*/

import {cleanup, render} from '@testing-library/react';
import React from 'react';
import {AllCheckerCheckbox, Checkbox, CheckboxGroup, NoneCheckerCheckbox} from "../src";
Expand Down
4 changes: 4 additions & 0 deletions __tests__/CheckboxEventTests.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* @jest-environment jsdom
*/

import {cleanup, fireEvent, render} from '@testing-library/react';
import React from 'react';
import {Checkbox, CheckboxGroup} from "../src";
Expand Down
4 changes: 4 additions & 0 deletions __tests__/CheckboxNoneCheckerCheckboxTest.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* @jest-environment jsdom
*/

import {cleanup, render} from "@testing-library/react";
import React from "react";
import {Checkbox, CheckboxGroup, NoneCheckerCheckbox} from "../src";
Expand Down
4 changes: 4 additions & 0 deletions __tests__/DuplicateIDTest.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* @jest-environment jsdom
*/

import {cleanup, render} from "@testing-library/react";
import React from "react";
import {AllCheckerCheckbox, Checkbox, CheckboxGroup, NoneCheckerCheckbox} from "../src";
Expand Down
4 changes: 4 additions & 0 deletions __tests__/NoneCheckboxEventTests.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* @jest-environment jsdom
*/

import {cleanup, fireEvent, render} from "@testing-library/react";
import React from "react";
import {Checkbox, CheckboxGroup, NoneCheckerCheckbox} from "../src";
Expand Down
24 changes: 14 additions & 10 deletions dist/AllCheckerCheckbox.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/AllCheckerCheckbox.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 14 additions & 10 deletions dist/Checkbox.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/Checkbox.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/CheckboxGroup.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { FC } from "react";
import React, { FC, PropsWithChildren } from 'react';
export interface CheckboxChange extends React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
checked: boolean;
disabled: boolean;
Expand All @@ -8,5 +8,5 @@ interface CheckboxGroupProps {
defaultDisabled?: boolean;
onChange?: (checkboxes: CheckboxChange[]) => void;
}
declare const CheckboxGroup: FC<CheckboxGroupProps>;
declare const CheckboxGroup: FC<PropsWithChildren<CheckboxGroupProps>>;
export default CheckboxGroup;
18 changes: 11 additions & 7 deletions dist/CheckboxGroup.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 84bc72c

Please sign in to comment.