File tree Expand file tree Collapse file tree 5 files changed +5350
-4244
lines changed
__tests__/frameworks/webpack Expand file tree Collapse file tree 5 files changed +5350
-4244
lines changed Original file line number Diff line number Diff line change 1616 strategy :
1717 matrix :
1818 os : [ubuntu-latest, windows-latest]
19- node : [18, 20 ]
19+ node : [20, 22 ]
2020 steps :
2121 - name : Checkout
2222 uses : actions/checkout@v4.1.1
2626 node-version : ${{ matrix.node }}
2727 - uses : pnpm/action-setup@v4.0.0
2828 with :
29- version : 8.x.x
3029 run_install : true
3130
3231 - name : Test
4544 uses : actions/setup-node@v4.0.2
4645 - uses : pnpm/action-setup@v4.0.0
4746 with :
48- version : 8.x.x
4947 run_install : true
5048
5149 - name : Lint
6563 - name : Setup Node.js
6664 uses : actions/setup-node@v4.0.2
6765 - uses : pnpm/action-setup@v4.0.0
68- with :
69- version : 8.x.x
7066
7167 - name : Test
7268 run : node scripts/build-examples.js
Original file line number Diff line number Diff line change 11import { describe , expect , it } from 'vitest'
22
3- import type { Stats } from 'webpack/types'
4-
53import { compile } from './util'
64
75describe ( 'Webpack SFC' , ( ) => {
@@ -37,11 +35,9 @@ describe('Webpack SFC', () => {
3735
3836 it ( 'errors with no locale attr' , async ( ) => {
3937 // Arrange
40- const func = async ( ) : Promise < Stats > => await compile ( 'fixtures/noLocale.vue' )
41-
4238 // Act
4339 // Assert
44- await expect ( func ) . rejects . toContainEqual (
40+ await expect ( ( ) => compile ( 'fixtures/noLocale.vue' ) ) . rejects . toContainEqual (
4541 expect . objectContaining ( {
4642 details : expect . stringContaining ( 'Error: Custom block does not have locale attribute' ) ,
4743 } ) ,
Original file line number Diff line number Diff line change 22 "name" : " unplugin-fluent-vue" ,
33 "type" : " module" ,
44 "version" : " 1.3.0" ,
5+ "packageManager" : " pnpm@9.9.0" ,
56 "description" : " unplugin for fluent-vue. Adds support for custom blocks in Vue SFC and external ftl files." ,
67 "author" : {
78 "name" : " Ivan Demchuk" ,
102103 "unplugin" : " ^1.0.0"
103104 },
104105 "devDependencies" : {
105- "@antfu/eslint-config" : " ^2.27.3 " ,
106+ "@antfu/eslint-config" : " ^3.0.0 " ,
106107 "@nuxt/schema" : " ^3.11.2" ,
107108 "@release-it-plugins/lerna-changelog" : " 7.0.0" ,
108109 "@types/node" : " 20.12.4" ,
109110 "@vitejs/plugin-vue" : " 5.0.4" ,
110111 "@vitest/coverage-istanbul" : " ^2.0.1" ,
111112 "@vue/compiler-sfc" : " 3.4.21" ,
112113 "dotenv-cli" : " 7.4.1" ,
113- "eslint" : " 8.57.0 " ,
114+ "eslint" : " 9.9.1 " ,
114115 "execa" : " 9.3.1" ,
115116 "husky" : " 9.0.11" ,
116117 "lint-staged" : " 15.2.2" ,
You can’t perform that action at this time.
0 commit comments