Skip to content

Commit

Permalink
Long path (#461)
Browse files Browse the repository at this point in the history
* fixed long path issue #409
  • Loading branch information
GeeWee committed Mar 4, 2018
1 parent 4a338b0 commit 17c6872
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -43,3 +43,7 @@ jspm_packages

.vscode
.idea


# Long paths
tests/simple-long-path/long-src-path
2 changes: 0 additions & 2 deletions README.md
Expand Up @@ -389,8 +389,6 @@ npm install
npm test
```

**Note:** If you are cloning on Windows, you may have to run `git config --system core.longpaths true` for Windows to stop complaining about long filenames.

## License

Copyright (c) [Authors](AUTHORS).
Expand Down
10 changes: 10 additions & 0 deletions tests/__tests__/long-path.spec.ts
@@ -1,6 +1,16 @@
import runJest from '../__helpers__/runJest';
import * as fs from 'fs-extra';

describe('Long path', () => {
const longPath =
'long-src-path/long-src-path/long-src-path/long-src-path/long-src-path/long-src-path/long-src-path/long-src-path/long-src-path/long-src-path/long-src-path/long-src-path/long-src-path/long-src-path/';
const destinationPath = `${__dirname}/../simple-long-path/${longPath}`;
beforeEach(async () => {
// root dir is project
await fs.ensureDir(destinationPath);
await fs.copy(`${__dirname}/../simple-long-path/src`, destinationPath);
});

it('should work as expected', () => {
const result = runJest('../simple-long-path/', [
'--no-cache',
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 17c6872

Please sign in to comment.