Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed May 21, 2024
1 parent 037567c commit d4ebe49
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/core/tests/config/extends/master-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,4 @@ const config = {
}
}

module.exports = {
config
}
export default config
2 changes: 1 addition & 1 deletion packages/core/tests/config/extends/test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { it, test, expect } from 'vitest'
import { MasterCSS } from '../../../src'
import { config } from './master-css'
import config from './master-css'

it.concurrent('config extends', () => {
const css = new MasterCSS(config)
Expand Down
2 changes: 1 addition & 1 deletion website/app/root-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default async function RootLayout({ children, locale, bodyClassName, styl
translations: any
}) {
return (
<html lang={locale} style={process.env.NODE_ENV === 'development' ? { display: 'none' } : style} suppressHydrationWarning>
<html lang={locale} style={{ display: 'none' }}>
<head>
<link rel="icon" href="/favicon.ico" type="image/x-icon" sizes="any" />
<script dangerouslySetInnerHTML={{ __html: PRE_INIT_SCRIPT }}></script>
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"dev": "node ../../../scripts/assets && next dev",
"build": "node ../../../scripts/assets && cd ../ && pnpm build && cd website && next build && tsx ../packages/cli/src/bin render \".next/**/*.html\"",
"build": "node ../../../scripts/assets && cd ../ && pnpm build && cd website && next build",
"start": "next start",
"lint": "next lint",
"type-check": "tsc --noEmit"
Expand Down

0 comments on commit d4ebe49

Please sign in to comment.