From c5f837c394500720ff03bedf65245ffa1685ed67 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Mon, 4 Mar 2024 12:37:24 +0000 Subject: [PATCH] enable stylex on tests --- package.json | 1 + pnpm-lock.yaml | 9 +++++++++ test/main.ts | 3 +++ 3 files changed, 13 insertions(+) diff --git a/package.json b/package.json index 7d2211ee..d04bdc2f 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "devDependencies": { "@jest/types": "^29.6.3", "@playwright/test": "1.40.1", + "@stylexjs/dev-runtime": "^0.5.1", "@stylexjs/esbuild-plugin": "^0.5.1", "@stylexjs/eslint-plugin": "^0.5.1", "@stylexjs/stylex": "^0.5.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2f767ee8..ca5423bc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -37,6 +37,9 @@ devDependencies: '@playwright/test': specifier: 1.40.1 version: 1.40.1 + '@stylexjs/dev-runtime': + specifier: ^0.5.1 + version: 0.5.1 '@stylexjs/esbuild-plugin': specifier: ^0.5.1 version: 0.5.1 @@ -1655,6 +1658,12 @@ packages: - supports-color dev: true + /@stylexjs/dev-runtime@0.5.1: + resolution: {integrity: sha512-iF0VIuqxDGG4eGkIBGyhPV5LONxAPRh6lO06qvbC85KdMzvt3Tffclv8HAbW8bcJFz7HJIOFYUoTGTjqyijKMw==} + dependencies: + '@stylexjs/shared': 0.5.1 + dev: true + /@stylexjs/esbuild-plugin@0.5.1: resolution: {integrity: sha512-EbOzSlBnOwwAH2cb6s3J8SZL2Gy/KUvJmfR6bUADwF9jBYOhMp2wxbZFfTT4VZiPlp80VFTAI5UC/hBs+1mEuA==} dependencies: diff --git a/test/main.ts b/test/main.ts index 5f391a82..57014db4 100644 --- a/test/main.ts +++ b/test/main.ts @@ -1,4 +1,7 @@ import "@abraham/reflection"; +import inject from "@stylexjs/dev-runtime"; + +inject({ test: false } as any); const todo = () => { throw new Error("not implemented");