-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
15b899a
commit d94738e
Showing
5 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
module.exports.info = function info (msg) { | ||
console.info('\n[vue-jest] Info: ' + (msg) + '\n') | ||
console.info('\n[vue-jest]: ' + (msg) + '\n') | ||
} | ||
|
||
module.exports.warn = function info (msg) { | ||
console.warn('\n[vue-jest]: ' + (msg) + '\n') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<template> | ||
<div class="testA"></div> | ||
</template> | ||
|
||
<style lang="scss"> | ||
@import "./styles/transitions"; | ||
.testA { | ||
background-color: red; | ||
} | ||
</style> | ||
|
||
<style lang="sass"> | ||
$primary-color: #333 | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { shallow } from 'vue-test-utils' | ||
import Sass from './resources/Sass.vue' | ||
|
||
describe('processes .vue file with Stylus style', () => { | ||
it('does not error on scss or sass', () => { | ||
const wrapper = shallow(Sass) | ||
expect(wrapper.classes()).toContain('testA') | ||
}) | ||
}) |