Skip to content

Commit d608a00

Browse files
committed
docs: update README and test names
1 parent 02a9a56 commit d608a00

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ This is experimental, and only works with Sass (for now) and may not always work
215215
| `sass` | `{}` | Set [renderer options for Sass](https://sass-lang.com/documentation/js-api#options). |
216216
| `stylus` | `{}` | Set [renderer options for Stylus](https://stylus.bootcss.com/docs/js.html). |
217217

218-
> For convenience, `includePaths` for Sass are extended, not replaced. The defaults are the path of the current file, and `'node_modules'`.
218+
> For convenience, `loadPaths` for Sass are extended, not replaced. The defaults are the path of the current file, and `'node_modules'`.
219219
220220
### Visual Studio Code
221221

src/helpers/__tests__/__snapshots__/getDtsSnapshot.test.ts.snap

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ exports[`utils / cssSnapshots with baseUrl and paths in compilerOptions sass sho
1919

2020
exports[`utils / cssSnapshots with file 'empty.module.less' createExports should create an exports file 1`] = `
2121
"declare let classes: {
22-
22+
2323
};
2424
export default classes;
2525
"
@@ -30,7 +30,7 @@ exports[`utils / cssSnapshots with file 'empty.module.less' getCssExports should
3030
exports[`utils / cssSnapshots with file 'empty.module.less' with a custom template should transform the generated dts 1`] = `
3131
"/* eslint-disable */
3232
declare let classes: {
33-
33+
3434
};
3535
export default classes;
3636
@@ -40,7 +40,7 @@ export type AllClassNames = '';"
4040

4141
exports[`utils / cssSnapshots with file 'empty.module.sass' createExports should create an exports file 1`] = `
4242
"declare let classes: {
43-
43+
4444
};
4545
export default classes;
4646
"
@@ -51,7 +51,7 @@ exports[`utils / cssSnapshots with file 'empty.module.sass' getCssExports should
5151
exports[`utils / cssSnapshots with file 'empty.module.sass' with a custom template should transform the generated dts 1`] = `
5252
"/* eslint-disable */
5353
declare let classes: {
54-
54+
5555
};
5656
export default classes;
5757
@@ -61,7 +61,7 @@ export type AllClassNames = '';"
6161

6262
exports[`utils / cssSnapshots with file 'empty.module.scss' createExports should create an exports file 1`] = `
6363
"declare let classes: {
64-
64+
6565
};
6666
export default classes;
6767
"
@@ -72,7 +72,7 @@ exports[`utils / cssSnapshots with file 'empty.module.scss' getCssExports should
7272
exports[`utils / cssSnapshots with file 'empty.module.scss' with a custom template should transform the generated dts 1`] = `
7373
"/* eslint-disable */
7474
declare let classes: {
75-
75+
7676
};
7777
export default classes;
7878
@@ -82,7 +82,7 @@ export type AllClassNames = '';"
8282

8383
exports[`utils / cssSnapshots with file 'empty.module.styl' createExports should create an exports file 1`] = `
8484
"declare let classes: {
85-
85+
8686
};
8787
export default classes;
8888
"
@@ -93,7 +93,7 @@ exports[`utils / cssSnapshots with file 'empty.module.styl' getCssExports should
9393
exports[`utils / cssSnapshots with file 'empty.module.styl' with a custom template should transform the generated dts 1`] = `
9494
"/* eslint-disable */
9595
declare let classes: {
96-
96+
9797
};
9898
export default classes;
9999
@@ -842,14 +842,14 @@ exports[`utils / cssSnapshots with goToDefinition enabled should return an objec
842842
}
843843
`;
844844

845-
exports[`utils / cssSnapshots with includePaths in sass options should find external file from includePaths 1`] = `
845+
exports[`utils / cssSnapshots with loadPaths in sass options should find external file from loadPaths 1`] = `
846846
{
847847
"big-font": "include-path-module__big-font---Td7hY",
848848
"class-with-mixin": "include-path-module__class-with-mixin---1u87_",
849849
}
850850
`;
851851

852-
exports[`utils / cssSnapshots with includePaths in stylus options should find external file from includePaths 1`] = `
852+
exports[`utils / cssSnapshots with loadPaths in stylus options should find external file from loadPaths 1`] = `
853853
{
854854
"external-class": "include-path-module__external-class---ecH0A",
855855
"include-path": "include-path-module__include-path---2f2uR",

src/helpers/__tests__/getDtsSnapshot.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ describe('utils / cssSnapshots', () => {
141141
});
142142
});
143143

144-
describe('with includePaths in sass options', () => {
144+
describe('with loadPaths in sass options', () => {
145145
const fileName = join(__dirname, 'fixtures', 'include-path.module.scss');
146146
const css = readFileSync(fileName, 'utf8');
147147

@@ -151,7 +151,7 @@ describe('utils / cssSnapshots', () => {
151151
},
152152
};
153153

154-
it('should find external file from includePaths', () => {
154+
it('should find external file from loadPaths', () => {
155155
const cssExports = getCssExports({
156156
css,
157157
fileName,
@@ -165,7 +165,7 @@ describe('utils / cssSnapshots', () => {
165165
});
166166
});
167167

168-
describe('with includePaths in stylus options', () => {
168+
describe('with loadPaths in stylus options', () => {
169169
const fileName = join(__dirname, 'fixtures', 'include-path.module.styl');
170170
const css = readFileSync(fileName, 'utf8');
171171

@@ -177,7 +177,7 @@ describe('utils / cssSnapshots', () => {
177177
},
178178
};
179179

180-
it('should find external file from includePaths', () => {
180+
it('should find external file from loadPaths', () => {
181181
const cssExports = getCssExports({
182182
css,
183183
fileName,

0 commit comments

Comments
 (0)