Skip to content

Commit

Permalink
fix: update all node_modules root path
Browse files Browse the repository at this point in the history
  • Loading branch information
iChenLei committed Aug 6, 2023
1 parent f608ecc commit a3c8469
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/less/test/browser/generator/runner.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var path = require('path');
var resolve = require('resolve')

var rootFolder = path.resolve(__dirname, '../../../');
var rootFolder = path.resolve(__dirname, '../../../../../');
var testFolder = path.relative(rootFolder, path.dirname(resolve.sync('@less/test-data')))
var lessFolder = path.join(testFolder, 'less');

Expand Down
4 changes: 2 additions & 2 deletions packages/less/test/browser/runner-browser-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ var testFiles = ['charsets', 'colors', 'comments', 'css-3', 'strings', 'media',
/**
* @todo - generate the node_modules path for this file and in templates
*/
var lessFolder = '../../node_modules/@less/test-data/less'
var cssFolder = '../../node_modules/@less/test-data/css'
var lessFolder = '../../../../node_modules/@less/test-data/less'
var cssFolder = '../../../../node_modules/@less/test-data/css'

for (var i = 0; i < testFiles.length; i++) {
var file = testFiles[i],
Expand Down

0 comments on commit a3c8469

Please sign in to comment.