Skip to content

Commit

Permalink
rename to setup-env
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Dec 11, 2024
1 parent f3c13c9 commit 9b766f1
Show file tree
Hide file tree
Showing 39 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion packages/cache/__tests__/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import 'test-utils/next-env'
import 'test-utils/setup-env'
import { safeQuerySelector } from 'test-utils'
import createCache from '@emotion/cache'
import { jsx, CacheProvider } from '@emotion/react'
Expand Down
2 changes: 1 addition & 1 deletion packages/css/test/component-selector.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import React from 'react'
import styled from '@emotion/styled'
import renderer from 'react-test-renderer'
Expand Down
2 changes: 1 addition & 1 deletion packages/css/test/css.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import React from 'react'
import renderer from 'react-test-renderer'
import { css, flush, sheet } from '@emotion/css'
Expand Down
2 changes: 1 addition & 1 deletion packages/css/test/cx.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import React from 'react'
import renderer from 'react-test-renderer'
import { css, cx } from '@emotion/css'
Expand Down
2 changes: 1 addition & 1 deletion packages/css/test/inject-global.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import { injectGlobal, sheet, flush, css } from '@emotion/css'

describe('injectGlobal', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/css/test/instance/css.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import React from 'react'
import renderer from 'react-test-renderer'
import { css as differentCss, flush, sheet } from './emotion-instance'
Expand Down
2 changes: 1 addition & 1 deletion packages/css/test/keyframes.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import React from 'react'
import renderer from 'react-test-renderer'
import { keyframes, flush, css } from '@emotion/css'
Expand Down
2 changes: 1 addition & 1 deletion packages/css/test/label-pattern.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import React from 'react'
import styled from '@emotion/styled'
import renderer from 'react-test-renderer'
Expand Down
2 changes: 1 addition & 1 deletion packages/css/test/no-babel/index.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import React from 'react'
import renderer from 'react-test-renderer'
import { css } from '@emotion/css'
Expand Down
2 changes: 1 addition & 1 deletion packages/css/test/no-babel/warnings.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import { css } from '@emotion/css'

console.error = jest.fn()
Expand Down
2 changes: 1 addition & 1 deletion packages/css/test/selectivity.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import { css, sheet, flush } from '@emotion/css'

describe('css', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/css/test/source-map/source-map.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import { css, sheet, flush } from '@emotion/css'

const commentPattern = /\/\*[\s\S]*?\*\//g
Expand Down
2 changes: 1 addition & 1 deletion packages/css/test/warnings.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import { css } from '@emotion/css'
import createCss from '@emotion/css/create-instance'
import * as React from 'react'
Expand Down
2 changes: 1 addition & 1 deletion packages/jest/test/matchers.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import renderer from 'react-test-renderer'
/** @jsx jsx */
import * as React from 'react'
Expand Down
2 changes: 1 addition & 1 deletion packages/jest/test/printer.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import 'test-utils/next-env'
import 'test-utils/setup-env'
import renderer from 'react-test-renderer'
import prettyFormat from 'pretty-format'
/** @jsx jsx */
Expand Down
2 changes: 1 addition & 1 deletion packages/jest/test/prod.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import renderer from 'react-test-renderer'
/** @jsx jsx */
import * as React from 'react'
Expand Down
2 changes: 1 addition & 1 deletion packages/react/__tests__/babel/css.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import 'test-utils/next-env'
import 'test-utils/setup-env'
import { jsx, css } from '@emotion/react'
import renderer from 'react-test-renderer'

Expand Down
2 changes: 1 addition & 1 deletion packages/react/__tests__/class-names.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react'
import 'test-utils/next-env'
import 'test-utils/setup-env'
import { ClassNames, ThemeProvider } from '@emotion/react'
import renderer from 'react-test-renderer'

Expand Down
2 changes: 1 addition & 1 deletion packages/react/__tests__/css-cache-hash.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import 'test-utils/next-env'
import 'test-utils/setup-env'
import { jsx, css } from '@emotion/react'
import { serializeStyles } from '@emotion/serialize'
import * as renderer from 'react-test-renderer'
Expand Down
2 changes: 1 addition & 1 deletion packages/react/__tests__/css.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import 'test-utils/next-env'
import 'test-utils/setup-env'
import { safeQuerySelector } from 'test-utils'
import * as React from 'react'
import { jsx, css, Global, CacheProvider, ThemeProvider } from '@emotion/react'
Expand Down
6 changes: 3 additions & 3 deletions packages/react/__tests__/custom-cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { CacheProvider, Global, jsx } from '@emotion/react'
import { StyleSheet } from '@emotion/sheet'
import renderer from 'react-test-renderer'
import { safeQuerySelector } from 'test-utils'
import 'test-utils/next-env'
import 'test-utils/setup-env'

function stylisPlugin(element) {
if (element.type === 'decl' && element.value.startsWith('color:')) {
Expand Down Expand Up @@ -74,14 +74,14 @@ test('Global should "inherit" sheet class from the cache', () => {
data-emotion="test-global"
data-s=""
>
/** test-global */body{width:0;}
</style>
<style
data-emotion="test"
data-s=""
>
/** test */.test-1lrxbo5{color:hotpink;}
</style>
</head>
Expand Down
2 changes: 1 addition & 1 deletion packages/react/__tests__/keyframes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import 'test-utils/next-env'
import 'test-utils/setup-env'
import { jsx, css, keyframes } from '@emotion/react'
import { safeQuerySelector, throwIfFalsy } from 'test-utils'
import cases from 'jest-in-case'
Expand Down
2 changes: 1 addition & 1 deletion packages/react/__tests__/legacy-class-name.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import 'test-utils/next-env'
import 'test-utils/setup-env'
import { jsx, css } from '@emotion/react'
import renderer from 'react-test-renderer'

Expand Down
2 changes: 1 addition & 1 deletion packages/react/__tests__/theme-provider.dom.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import 'test-utils/next-env'
import 'test-utils/setup-env'
import { render, fireEvent } from '@testing-library/react'
import { safeQuerySelector } from 'test-utils'
import * as React from 'react'
Expand Down
2 changes: 1 addition & 1 deletion packages/react/__tests__/theme-provider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import 'test-utils/next-env'
import 'test-utils/setup-env'
import { ignoreConsoleErrors } from 'test-utils'
import { jsx, ThemeProvider } from '@emotion/react'
import renderer from 'react-test-renderer'
Expand Down
2 changes: 1 addition & 1 deletion packages/react/__tests__/use-theme.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import 'test-utils/next-env'
import 'test-utils/setup-env'
import * as renderer from 'react-test-renderer'
import { jsx, useTheme, ThemeProvider } from '@emotion/react'

Expand Down
2 changes: 1 addition & 1 deletion packages/react/__tests__/warnings.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import 'test-utils/next-env'
import 'test-utils/setup-env'
import { jsx, css, Global, keyframes, ClassNames } from '@emotion/react'
import styled from '@emotion/styled'
import renderer from 'react-test-renderer'
Expand Down
2 changes: 1 addition & 1 deletion packages/styled/__tests__/as-prop.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import React from 'react'
import { render, cleanup } from '@testing-library/react'
import styled from '@emotion/styled'
Expand Down
2 changes: 1 addition & 1 deletion packages/styled/__tests__/edge-cases.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import * as React from 'react'
import renderer from 'react-test-renderer'
import styled from '@emotion/styled'
Expand Down
2 changes: 1 addition & 1 deletion packages/styled/__tests__/styled.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import 'test-utils/next-env'
import 'test-utils/setup-env'
import renderer from 'react-test-renderer'
import hoistNonReactStatics from 'hoist-non-react-statics'
import styled from '@emotion/styled'
Expand Down
2 changes: 1 addition & 1 deletion packages/styled/__tests__/warnings.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import * as React from 'react'
import { css } from '@emotion/react'
import styled from '@emotion/styled'
Expand Down
2 changes: 1 addition & 1 deletion packages/styled/test/babel-plugin.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import React from 'react'
import * as renderer from 'react-test-renderer'
import styled from '@emotion/styled'
Expand Down
2 changes: 1 addition & 1 deletion packages/styled/test/component-selector.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import React from 'react'
import styled from '@emotion/styled'
import * as renderer from 'react-test-renderer'
Expand Down
2 changes: 1 addition & 1 deletion packages/styled/test/composition.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @jsx jsx */
import 'test-utils/next-env'
import 'test-utils/setup-env'
import * as renderer from 'react-test-renderer'
import { jsx, css } from '@emotion/react'
import styled from '@emotion/styled'
Expand Down
2 changes: 1 addition & 1 deletion packages/styled/test/index.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import React from 'react'
import * as renderer from 'react-test-renderer'
import { css } from '@emotion/react'
Expand Down
2 changes: 1 addition & 1 deletion packages/styled/test/prop-filtering.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import React from 'react'
import * as renderer from 'react-test-renderer'
import styled from '@emotion/styled'
Expand Down
2 changes: 1 addition & 1 deletion packages/styled/test/theming.dom.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import React from 'react'
import styled from '@emotion/styled'
import { ThemeProvider } from '@emotion/react'
Expand Down
2 changes: 1 addition & 1 deletion packages/styled/test/theming.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'test-utils/next-env'
import 'test-utils/setup-env'
import React from 'react'
import * as renderer from 'react-test-renderer'
import styled from '@emotion/styled'
Expand Down
File renamed without changes.

0 comments on commit 9b766f1

Please sign in to comment.