Skip to content

Commit 251e611

Browse files
committed
refactor: rename to vue-jest
1 parent 84ffd55 commit 251e611

File tree

10 files changed

+24
-24
lines changed

10 files changed

+24
-24
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<a name="0.8.1"></a>
2-
## [0.8.1](https://github.com/eddyerburgh/jest-vue/compare/v0.8.0...v0.8.1) (2017-10-11)
2+
## [0.8.1](https://github.com/eddyerburgh/vue-jest/compare/v0.8.0...v0.8.1) (2017-10-11)
33

44

55
### Bug Fixes
66

7-
* use the absolute path to babel preset ([#12](https://github.com/eddyerburgh/jest-vue/issues/12)) ([60bccff](https://github.com/eddyerburgh/jest-vue/commit/60bccff))
7+
* use the absolute path to babel preset ([#12](https://github.com/eddyerburgh/vue-jest/issues/12)) ([60bccff](https://github.com/eddyerburgh/vue-jest/commit/60bccff))
88

99
<a name="0.8.0"></a>
10-
# [2.0.0](https://github.com/eddyerburgh/jest-vue/compare/v0.7.2...v0.8.0) (2017-10-10)
10+
# [2.0.0](https://github.com/eddyerburgh/vue-jest/compare/v0.7.2...v0.8.0) (2017-10-10)
1111

1212
### Features
1313

14-
* **babel:** use vue-app babel preset ([123ce43](https://github.com/eddyerburgh/jest-vue/commit/123ce43))
14+
* **babel:** use vue-app babel preset ([123ce43](https://github.com/eddyerburgh/vue-jest/commit/123ce43))
1515

1616
<a name="0.7.2"></a>
1717
## [0.7.2](https://github.com/eddyerburgh/vue-jest/compare/v0.7.1...v0.7.2) (2017-10-06)

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# jest-vue
1+
# vue-jest
22

33
Jest Vue transformer with source map support
44

55
## Usage
66

77
```
8-
npm install --save-dev jest-vue
8+
npm install --save-dev vue-jest
99
```
1010

1111
## Setup
1212

13-
To define jest-vue as a transformer for your .vue files, you need to map .vue files to the jest-vue module.
13+
To define vue-jest as a transformer for your .vue files, you need to map .vue files to the vue-jest module.
1414

1515
```
1616
"transform": {
17-
".*\\.(vue)$": "<rootDir>/node_modules/jest-vue"
17+
".*\\.(vue)$": "<rootDir>/node_modules/vue-jest"
1818
},
1919
```
2020

@@ -30,7 +30,7 @@ To use source maps, you need to set `mapCoverage` to `true`. A full config will
3030
],
3131
"transform": {
3232
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
33-
".*\\.(vue)$": "<rootDir>/node_modules/jest-vue"
33+
".*\\.(vue)$": "<rootDir>/node_modules/vue-jest"
3434
},
3535
"mapCoverage": true
3636
}
@@ -39,14 +39,14 @@ To use source maps, you need to set `mapCoverage` to `true`. A full config will
3939

4040
## Example Projects
4141

42-
Example repositories testing Vue components with jest and jest-vue:
42+
Example repositories testing Vue components with jest and vue-jest:
4343

4444
- [Avoriaz with Jest](https://github.com/eddyerburgh/avoriaz-jest-example)
4545
- [Vue Test Utils with Jest](https://github.com/eddyerburgh/vue-test-utils-jest-example)
4646

4747
## Supported langs
4848

49-
jest-vue compiles the script and template of SFCs into a JavaScript file that Jest can run. **It does not currently compile the style section**.
49+
vue-jest compiles the script and template of SFCs into a JavaScript file that Jest can run. **It does not currently compile the style section**.
5050

5151
### Supported script languages
5252

lib/logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports.info = function info (msg) {
2-
console.info('\n[jest-vue] Info: ' + (msg) + '\n')
2+
console.info('\n[vue-jest] Info: ' + (msg) + '\n')
33
}

lib/throw-error.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = function error (msg) {
2-
throw new Error('\n[jest-vue] Error: ' + (msg) + '\n')
2+
throw new Error('\n[vue-jest] Error: ' + (msg) + '\n')
33
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"name": "jest-vue",
2+
"name": "vue-jest",
33
"version": "0.8.1",
44
"description": "Jest Vue transform",
5-
"main": "jest-vue.js",
5+
"main": "vue-jest.js",
66
"keywords": [
77
"jest",
88
"vue",
99
"jest vue",
1010
"jest vue transform",
1111
"jest vue preprocessor",
12-
"jest-vue",
12+
"vue jest",
1313
"vue jest",
1414
"vue jest transform",
1515
"vue jest preprocessor"
1616
],
1717
"scripts": {
18-
"lint": "eslint lib jest-vue.js test",
18+
"lint": "eslint lib vue-jest.js test",
1919
"lint:fix": "npm run lint -- --fix",
2020
"release": "build/release.sh",
2121
"release:note": "node build/gen-release-note.js",
@@ -68,7 +68,7 @@
6868
],
6969
"transform": {
7070
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
71-
".*\\.(vue)$": "<rootDir>/jest-vue.js"
71+
".*\\.(vue)$": "<rootDir>/vue-jest.js"
7272
},
7373
"mapCoverage": true
7474
}

test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ mkdir temp-dir
33
cp -R test temp-dir/test
44
cp -R lib temp-dir/lib
55
cp -R node_modules temp-dir/node_modules
6-
cp jest-vue.js temp-dir/jest-vue.js
6+
cp vue-jest.js temp-dir/vue-jest.js
77
cp package.json temp-dir/package.json
88
cp .babelrc temp-dir/.babelrc
99
cp tsconfig.json temp-dir/tsconfig.json
1010
cd temp-dir
11-
yarn unit:run
11+
yarn unit:run

test/Babel.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Vue from 'vue'
22
import Basic from './resources/Basic.vue'
3-
import jestVue from '../jest-vue'
3+
import jestVue from '../vue-jest'
44
import { resolve } from 'path'
55
import {
66
readFileSync,
@@ -45,7 +45,7 @@ test('logs info when there is no .babelrc', () => {
4545

4646
jestVue.process(fileString, filePath)
4747
try {
48-
expect(info).toHaveBeenCalledWith('\n[jest-vue] Info: no .babelrc found, defaulting to default babel options\n')
48+
expect(info).toHaveBeenCalledWith('\n[vue-jest] Info: no .babelrc found, defaulting to default babel options\n')
4949
} catch (err) {
5050
renameSync(tempPath, babelRcPath)
5151
throw err

test/TypeScript.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { shallow } from 'vue-test-utils'
22
import { resolve } from 'path'
33
import TypeScript from './resources/TypeScript.vue'
4-
import jestVue from '../jest-vue'
4+
import jestVue from '../vue-jest'
55
import { readFileSync } from 'fs'
66
import cache from '../lib/cache'
77

jest-vue.js renamed to vue-jest.js

File renamed without changes.

0 commit comments

Comments
 (0)