Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit a3a4123

Browse files
committed
test(nuxt-chakra): fix test, nuxt.config.js and add @nuxtjs/emotion to jest ignore
1 parent 28d81df commit a3a4123

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

packages/nuxt-chakra/example/nuxt.config.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@ module.exports = {
66
buildDir: resolve(__dirname, '.nuxt'),
77
srcDir: __dirname,
88
modules: [
9-
{ handler: require('../') },
10-
// During development comment please uncomment,
11-
process.env.NODE_ENV === 'development' && { handler: require('@nuxtjs/emotion') }
9+
{ handler: require('../lib/module') },
10+
{ handler: require('@nuxtjs/emotion') }
1211
],
13-
build: {
14-
transpile: ['@nuxtjs/emotion']
15-
},
1612
chakra: {
1713
extendTheme: theme
1814
}

packages/nuxt-chakra/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ module.exports = {
1717
testMatch: [
1818
'**/**/*.spec.(js|jsx|ts|tsx)'
1919
],
20-
transformIgnorePatterns: ['node_modules/(?!(lodash-es|@chakra-ui/vue))']
20+
transformIgnorePatterns: ['node_modules/(?!(lodash-es|@chakra-ui/vue|@nuxtjs/emotion))']
2121
}

packages/nuxt-chakra/test/module.spec.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
const { setup, loadConfig, get } = require('@nuxtjs/module-test-utils')
22
const customTheme = require('../example/utils/theme')
3-
jest.useFakeTimers()
4-
53
/**
64
* nuxtjs/module-test-utils is unable
75
* to fully support some of the recent nuxtjs
@@ -22,7 +20,7 @@ jest.useFakeTimers()
2220
*
2321
* Contributions are welcome!
2422
*/
25-
xdescribe('module', () => {
23+
describe('module', () => {
2624
let nuxt
2725

2826
beforeAll(async () => {

0 commit comments

Comments
 (0)