Skip to content

Commit

Permalink
Ignore new atimeMs values in babel-config test
Browse files Browse the repository at this point in the history
These wer introduced in Node.js 8.1.0.
  • Loading branch information
novemberborn committed Jun 9, 2017
1 parent 1c7ba39 commit aa25df5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/babel-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,17 @@ test('caches and uses results', t => {
const firstCacheKeys = result.cacheKeys;
const stats = files.map(f => fs.statSync(path.join(cacheDir, f)));
delete stats[0].atime;
delete stats[0].atimeMs;
delete stats[1].atime;
delete stats[1].atimeMs;

return babelConfigHelper.build(projectDir, cacheDir, 'default', true)
.then(result => {
const newStats = files.map(f => fs.statSync(path.join(cacheDir, f)));
delete newStats[0].atime;
delete newStats[0].atimeMs;
delete newStats[1].atime;
delete newStats[1].atimeMs;

t.same(newStats, stats);
t.same(result.cacheKeys, firstCacheKeys);
Expand Down

0 comments on commit aa25df5

Please sign in to comment.