Skip to content

Commit

Permalink
test: fix test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasaarcoverde committed Nov 22, 2023
1 parent 5f7d304 commit 4129ec3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ module.exports = {
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname',
],
preset: 'jest-preset-stylelint',
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@
"vitest": "0.34.6",
"stylelint": "^15.11.0",
"stylelint-prettier": "^4.0.2",
"@vtex/shoreline-stylelint": "workspace"
"@vtex/shoreline-stylelint": "workspace",
"jest-preset-stylelint": "^6.3.2"
},
"lint-staged": {
"*.{ts,tsx,js,jsx}": [
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint/src/plugins/no-space-in-px/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const stylelint = require('stylelint')
const { replaceDeclaration } = require('../../utils/replace-declaration.mjs')
const { replaceDeclaration } = require('../../utils/replace-declaration.js')

const { ruleMessages, validateOptions, report } = stylelint.utils

Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint/src/plugins/no-text-property/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const stylelint = require('stylelint')
const { replaceDeclaration } = require('../../utils/replace-declaration.mjs')
const { replaceDeclaration } = require('../../utils/replace-declaration.js')

const { ruleMessages, validateOptions, report } = stylelint.utils

Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4129ec3

Please sign in to comment.