diff options
| author | mitermayer <mitermayer.reis@gmail.com> | 2019-08-30 05:42:31 +0000 |
|---|---|---|
| committer | mitermayer <mitermayer.reis@gmail.com> | 2019-08-30 05:43:24 +0000 |
| commit | cbcefaeca4e5fdb201687597d5afa70b20081d3e (patch) | |
| tree | d3540a18d70638a5ce2a9532e24cad69f12825c2 | |
| parent | 3ed91319e5d168394890c2abaabae53c7a97a51b (diff) | |
| download | vim-prettier-cbcefaeca4e5fdb201687597d5afa70b20081d3e.tar.xz | |
enabling-tests-to-auto-run-on-ci - Updating jest timeout for functions
- testing if the reason why things are failing is due to timeout
| -rw-r--r-- | tests/formatting.test.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/formatting.test.js b/tests/formatting.test.js index 258bbb8..6514fec 100644 --- a/tests/formatting.test.js +++ b/tests/formatting.test.js @@ -10,6 +10,8 @@ const FIXTURES_DIR = `${__dirname}/fixtures`; let server; let remote; +jest.setTimeout(10000); + const getBufferContents = async remote => (await remote.call('getline', [1, '$'])).join('\n'); @@ -52,7 +54,7 @@ const assertFormatting = (file) => { // we now check that we have indeed formatted the code expect(updatedLines).not.toBe(lines); - }, 10000); + }); test(`Prettier formats ${filename} file with :PrettierAsync command`, async () => { await remote.edit(`${FIXTURES_DIR}/${file}`); @@ -74,7 +76,7 @@ const assertFormatting = (file) => { // we now check that we have indeed formatted the code expect(lines).not.toBe(updatedLines); - }, 10000); + }); }; beforeAll(async () => { |
