generated from atls-lab/template
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Ошибка тестов vanilla-extract
при импорте темы
#443
Labels
bug
Something isn't working
Comments
Причина в этом импорте: import './global.css'
import { createTheme } from '@vanilla-extract/css'
import { createThemeContract } from '@vanilla-extract/css'
import { darkThemeTokens } from './theme/index.js'
import { themeContract } from './theme/index.js'
import { lightThemeTokens } from './theme/index.js'
export const vars = createThemeContract(themeContract)
export const lightTheme = createTheme(vars, lightThemeTokens)
export const darkTheme = createTheme(vars, darkThemeTokens) Из-за отсутствия расширения
Корректировка импорта на "двойной": import './global.css'
import './global.css.js'
import { createTheme } from '@vanilla-extract/css'
import { createThemeContract } from '@vanilla-extract/css'
import { darkThemeTokens } from './theme/index.js'
import { themeContract } from './theme/index.js'
import { lightThemeTokens } from './theme/index.js'
export const vars = createThemeContract(themeContract)
export const lightTheme = createTheme(vars, lightThemeTokens)
export const darkTheme = createTheme(vars, darkThemeTokens) Не работает. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Описание бага
Текущий бандл запускает тесты через
node:test
.В интеграционных и е2е тестах с помощью
playwright
, когда мы запускаем энтрипоинт, тесты не стартуют из-за ошибки импорта объекта темы.Воспроизведение
yarn test integration menu-list
Ожидаемое поведение
Тесты прошли успешно, данные из темы импортировались и могут быть использованы в тестах.
Материалы
Данные окружения
The text was updated successfully, but these errors were encountered: