Skip to content

Commit

Permalink
Tighten up the e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
kohlmannj-nyt committed Feb 29, 2024
1 parent a9ae35a commit f64a360
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
5 changes: 0 additions & 5 deletions test/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,13 +344,8 @@ describe('e2e tests', function () {
format: 'esm',
plugins: [
sassPlugin({
filter: /\.module\.scss$/,
type: 'local-css'
}),
sassPlugin({
filter: /\.scss$/,
type: 'css'
}),
]
})

Expand Down
9 changes: 2 additions & 7 deletions test/fixture/local-css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ esbuild.build({
format: "esm",
plugins: [
sassPlugin({
transform: postcssModules({
// ...put here the options for the cssModules plugin
// see: https://github.com/madyankin/postcss-modules
})
type: 'local-css'
}),
]
}).catch(() => process.exit(1));
Expand All @@ -24,9 +21,7 @@ esbuild.build({
"dependencies": {
...
"esbuild": "^0.12.20",
"esbuild-sass-plugin": "^1.5.0",
"postcss": "^8.3.6",
"postcss-modules": "^4.2.2"
"esbuild-sass-plugin": "^1.5.0"
...
}
```
Expand Down
5 changes: 0 additions & 5 deletions test/fixture/local-css/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ esbuild.build({
format: 'esm',
plugins: [
sassPlugin({
filter: /\.module\.scss$/,
type: 'local-css'
}),
sassPlugin({
filter: /\.scss$/,
type: 'css'
}),
]
}).then(logSuccess, logFailure)

0 comments on commit f64a360

Please sign in to comment.