@@ -3,10 +3,7 @@ import path from 'path'
3
3
4
4
import { run , css } from './util/run'
5
5
6
- beforeEach ( ( ) => jest . resetModules ( ) )
7
-
8
- test ( 'raw content' , ( ) => {
9
- let tailwind = require ( '../src' )
6
+ it ( 'raw content' , ( ) => {
10
7
let config = {
11
8
content : [ { raw : fs . readFileSync ( path . resolve ( __dirname , './raw-content.test.html' ) , 'utf8' ) } ] ,
12
9
corePlugins : { preflight : false } ,
@@ -17,7 +14,7 @@ test('raw content', () => {
17
14
@tailwind utilities;
18
15
`
19
16
20
- return run ( input , config , tailwind ) . then ( ( result ) => {
17
+ return run ( input , config ) . then ( ( result ) => {
21
18
let expectedPath = path . resolve ( __dirname , './raw-content.test.css' )
22
19
let expected = fs . readFileSync ( expectedPath , 'utf8' )
23
20
@@ -26,7 +23,6 @@ test('raw content', () => {
26
23
} )
27
24
28
25
test ( 'raw content with extension' , ( ) => {
29
- let tailwind = require ( '../src' )
30
26
let config = {
31
27
content : {
32
28
files : [
@@ -42,7 +38,7 @@ test('raw content with extension', () => {
42
38
corePlugins : { preflight : false } ,
43
39
}
44
40
45
- return run ( '@tailwind utilities' , config , tailwind ) . then ( ( result ) => {
41
+ return run ( '@tailwind utilities' , config ) . then ( ( result ) => {
46
42
expect ( result . css ) . toMatchFormattedCss ( css `
47
43
.invisible {
48
44
visibility : hidden;
0 commit comments