Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix: Update frontend tests to support Node.js 22.x (#5444)

Graham Neubiga241b9ff98d2
diff --git a/.github/workflows/fe-unit-tests.yml b/.github/workflows/fe-unit-tests.yml
index b720bfe34c..dd577b4b43 100644
--- a/.github/workflows/fe-unit-tests.yml
+++ b/.github/workflows/fe-unit-tests.yml
@@ -24,7 +24,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- node-version: [20]
+ node-version: [20, 22]
+ fail-fast: true
steps:
- name: Checkout
uses: actions/checkout@v4
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js
index 0a0c34d941..1e665d23fd 100644
--- a/frontend/tailwind.config.js
+++ b/frontend/tailwind.config.js
@@ -1,5 +1,7 @@
/** @type {import('tailwindcss').Config} */
-const { nextui } = require("@nextui-org/react");
+import { nextui } from "@nextui-org/react";
+import typography from '@tailwindcss/typography';
+
export default {
content: [
"./src/**/*.{js,ts,jsx,tsx}",
@@ -33,6 +35,6 @@ export default {
}
}
}),
- require('@tailwindcss/typography'),
+ typography,
],
};