Get tests passing on Windows (#4579)

Closes #4564
master
Lucas Azzola 2018-05-28 21:46:55 +10:00 committed by GitHub
parent 1669a7b38b
commit 19cdd5fde2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 3 deletions

15
.appveyor.yml Normal file
View File

@ -0,0 +1,15 @@
version: '{build}'
branches:
only: [master]
init:
- ps: Install-Product node 8
install:
- cmd: npm -v
- cmd: node -v
- cmd: npm install -g yarn
- cmd: yarn
cache:
- node_modules
build: off
test_script:
- cmd: yarn test

View File

@ -1,7 +1,7 @@
"use strict";
const runPrettier = require("../runPrettier");
const EOL = require("os").EOL;
const EOL = "\n";
describe("uses 'extensions' from languages to determine parser", () => {
runPrettier("plugins/extensions", ["*.foo", "--plugin=./plugin"]).test({

View File

@ -1,7 +1,7 @@
"use strict";
const runPrettier = require("../runPrettier");
const EOL = require("os").EOL;
const EOL = "\n";
describe("parser preprocess function is used to reshape input text", () => {
runPrettier("plugins/preprocess", ["*.foo", "--plugin=./plugin"]).test({

View File

@ -1,7 +1,7 @@
"use strict";
const runPrettier = require("../runPrettier");
const EOL = require("os").EOL;
const EOL = "\n";
describe("automatically loads 'prettier-plugin-*'", () => {
runPrettier("plugins/automatic", ["file.txt", "--parser=foo"]).test({