Skip to content

Commit

Permalink
update ignore tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Jun 25, 2021
1 parent 9d7c1bd commit edd70e3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion src/test/fixtures/vscodeignore/.vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
out/

# pattern of file name
*.log
*.log

# https://github.com/microsoft/vscode-vsce/issues/588
foo
!foo/bar/hello.txt
1 change: 1 addition & 0 deletions src/test/fixtures/vscodeignore/foo/bar/hello.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hi there
11 changes: 5 additions & 6 deletions src/test/package.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,13 @@ describe('collect', function () {
});
});

it('should ignore content of .vscodeignore', () => {
it('should ignore content of .vscodeignore', async () => {
const cwd = fixture('vscodeignore');
const manifest = await readManifest(cwd);
const files = await collect(manifest, { cwd });
const names = files.map(f => f.path).sort();

return readManifest(cwd)
.then(manifest => collect(manifest, { cwd }))
.then(files => {
assert.equal(files.length, 3);
});
assert.deepStrictEqual(names, ['[Content_Types].xml', 'extension.vsixmanifest', 'extension/package.json']);
});

it('should ignore devDependencies', () => {
Expand Down

0 comments on commit edd70e3

Please sign in to comment.