Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump @headlessui/react from 1.7.11 to 1.7.17 in /assets #1721

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ module.exports = {
// runner: "jest-runner",

// The paths to modules that run some code to configure or set up the testing environment before each test
// setupFiles: [],
setupFiles: ['./setupTests.js'],

// A list of paths to modules that run some code to configure or set up the testing framework before each test
// setupFilesAfterEnv: [],
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/HostDetails/HostDetails.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ describe('HostDetails component', () => {

const cleanUpModalButton = screen.getAllByRole('button', {
name: 'Clean up',
})[1];
})[0];
await user.click(cleanUpModalButton);

const actions = store.getActions();
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/HostsList.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ describe('HostsLists component', () => {

const cleanUpModalButton = screen.getAllByRole('button', {
name: 'Clean up',
})[1];
})[0];

await user.click(cleanUpModalButton);

Expand Down
8 changes: 4 additions & 4 deletions assets/package-lock.json

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

2 changes: 1 addition & 1 deletion assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"tailwindcss": "^3.3.3"
},
"dependencies": {
"@headlessui/react": "^1.7.11",
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@reduxjs/toolkit": "^1.9.5",
"axios": "^1.4.0",
Expand Down
5 changes: 5 additions & 0 deletions assets/setupTests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
global.ResizeObserver = jest.fn().mockImplementation(() => ({
observe: jest.fn(),
unobserve: jest.fn(),
disconnect: jest.fn(),
}));